Html 2个不同延迟的css列车位置
在我的页面上有一个橙色的容器。如果我将鼠标放在框上并等待0.5秒,边框半径(右下角和左下角)会发生变化。那很好。但是我想如果我把鼠标放在盒子上1秒钟,边框半径(右上和左上)就会改变Html 2个不同延迟的css列车位置,html,css,Html,Css,在我的页面上有一个橙色的容器。如果我将鼠标放在框上并等待0.5秒,边框半径(右下角和左下角)会发生变化。那很好。但是我想如果我把鼠标放在盒子上1秒钟,边框半径(右上和左上)就会改变 延迟0.5秒后,边界半径(右下和左下) 延迟1秒后,边界半径(右上和左上) 下面是方框的+代码: .text{ 文本对齐:对齐; 背景颜色:橙色; 边缘底部:100px; 背景色:#FFCD57; 填充:20px 20px 20px 20px; 单词包装:打断单词; 过渡:所有0.5s和0.3s; } .文本:
- 延迟0.5秒后,边界半径(右下和左下)
- 延迟1秒后,边界半径(右上和左上)
.text{
文本对齐:对齐;
背景颜色:橙色;
边缘底部:100px;
背景色:#FFCD57;
填充:20px 20px 20px 20px;
单词包装:打断单词;
过渡:所有0.5s和0.3s;
}
.文本:悬停{
边框右下半径:40px;
边框左下半径:40px;
}
他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos和accusam以及justo duo dolores和ea Reum。斯泰特·克莱塔·卡斯德·古伯格伦(Stet clita kasd gubergren),没有海洋保护区是属于同一领域的。他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos和accusam以及justo duo dolores和ea Reum。斯泰特·克莱塔·卡斯德·古伯格伦(Stet clita kasd gubergren),没有海洋保护区是属于同一领域的。他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos和accusam以及justo duo dolores和ea Reum。斯泰特·克莱塔·卡斯德·古伯格伦(Stet clita kasd gubergren),没有海洋保护区是属于同一领域的。
在亨德雷特的两个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里,一个房间里。Lorem ipsum dolor sit amet,
您可以使用逗号分隔不同的动画,因此在您的示例中,您可以如下更改CSS:
.text {
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-webkit-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-moz-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-o-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
}
.text:hover {
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
}
我还包括了供应商扩展,以进一步提高兼容性。虽然大多数浏览器都可以读取非供应商属性,但始终确保在较旧的浏览器中包含这些属性
有关更多信息,请参见。您可以使用逗号分隔不同的动画,因此在您的示例中,您可以如下更改CSS:
.text {
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-webkit-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-moz-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-o-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
}
.text:hover {
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
}
我还包括了供应商扩展,以进一步提高兼容性。虽然大多数浏览器都可以读取非供应商属性,但始终确保在较旧的浏览器中包含这些属性
有关更多信息,请参见。您可以使用逗号分隔不同的动画,因此在您的示例中,您可以如下更改CSS:
.text {
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-webkit-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-moz-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-o-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
}
.text:hover {
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
}
我还包括了供应商扩展,以进一步提高兼容性。虽然大多数浏览器都可以读取非供应商属性,但始终确保在较旧的浏览器中包含这些属性
有关更多信息,请参见。您可以使用逗号分隔不同的动画,因此在您的示例中,您可以如下更改CSS:
.text {
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-webkit-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-moz-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
-o-transition: border-bottom-right-radius 0.5s 0.5s, border-bottom-left-radius 0.5s 0.5s, border-top-right-radius 0.5s 1s, border-top-left-radius 0.5s 1s;
}
.text:hover {
border-bottom-right-radius: 40px;
border-bottom-left-radius: 40px;
border-top-left-radius: 40px;
border-top-right-radius: 40px;
}
我还包括了供应商扩展,以进一步提高兼容性。虽然大多数浏览器都可以读取非供应商属性,但始终确保在较旧的浏览器中包含这些属性
请参阅以获取更多信息尝试将css属性的名称应用于转换:
尝试将css属性的名称应用于转换:
尝试将css属性的名称应用于转换:
尝试将css属性的名称应用于转换:
您可以使用CSS动画来产生所需的效果 这是密码
.text{
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition:all .5s ease;
}
.text:hover{
-webkit-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
-moz-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
}
@-webkit-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-webkit-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@-moz-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-moz-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
如果你有任何问题,请留下评论,我很乐意回答
使用CSS动画可以产生所需的效果 这是密码
.text{
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition:all .5s ease;
}
.text:hover{
-webkit-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
-moz-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
}
@-webkit-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-webkit-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@-moz-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-moz-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
如果你有任何问题,请留下评论,我很乐意回答
使用CSS动画可以产生所需的效果 这是密码
.text{
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition:all .5s ease;
}
.text:hover{
-webkit-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
-moz-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
}
@-webkit-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-webkit-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@-moz-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-moz-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
如果你有任何问题,请留下评论,我很乐意回答
使用CSS动画可以产生所需的效果 这是密码
.text{
text-align: justify;
background-color: orange;
margin-bottom: 100px;
background-color: #FFCD57;
padding: 20px 20px 20px 20px;
word-wrap:break-word;
transition:all .5s ease;
}
.text:hover{
-webkit-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
-moz-animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
animation:first .5s linear .5s 1 forwards, second .5s linear 1s 1 forwards;
}
@-webkit-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-webkit-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@-moz-keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@-moz-keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
@keyframes first{
from{border-radius:0;}
to{border-radius:40px 40px 0 0;}
}
@keyframes second{
from{border-radius:40px 40px 0 0;}
to{border-radius:40px;}
}
如果你有任何问题,请留下评论,我很乐意回答
您可以使用
setTimeout()
进行第二次延迟
var text=document.getElementsByClassName('text')[0];
var anim;
text.addEventListener('mouseover',function(){
anim=setTimeout(函数(){
text.style.borderTopRightRadius='40px';
text.style.borderTopLeftRadius='40px';
}, 1500);
});
text.addEventListener('mouseleave',function(){
clearInterval(动画);
text.style.borderTopRightRadius='0';
text.style.borderTopLeftRadius='0';
});代码>
.text{
文本对齐:对齐;
背景颜色:橙色;
边缘底部:100px;
背景色:#FFCD57;
填充:20px 20px 20px 20px;
单词包装:打断单词;
过渡:所有0.5s和0.3s;
}
.文本:悬停{
边框右下半径:40px;
边框左下半径:40px;
}
.顶{
边框左上半径:40px;
边框右上角半径:40px;
}
他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos和accusam以及justo duo dolores和ea Reum。斯特特·克里塔·卡斯德·古伯格伦,没有大海
圣殿是圣殿。他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos和accusam以及justo duo dolores和ea Reum。
斯泰特·克莱塔·卡斯德·古伯格伦(Stet clita kasd gubergren),没有海洋保护区是属于同一领域的。他说:“我的工作是在工作中完成的,我的工作是在工作中完成的,我的工作是在工作中完成的。”。在vero eos
这是一个很好的例子。斯特克里塔·卡斯德·古