Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么不是';是否使用关键帧设置文本动画?_Html_Css_Animation_Text_Css Animations - Fatal编程技术网

Html 为什么不是';是否使用关键帧设置文本动画?

Html 为什么不是';是否使用关键帧设置文本动画?,html,css,animation,text,css-animations,Html,Css,Animation,Text,Css Animations,我试图使用关键帧使文本从左向右移动,但是它不起作用,因为它只是保持静止。我如何解决这个问题,非常感谢您的帮助。注意:这只是一段较大代码的一部分 代码: .text1{ 位置:绝对位置; 底部:50%; 左:0px; 字体大小:20px; 字体系列:绿色,Arial字体; .动画名称:lefttoright; 动画持续时间:3s; } @左向右关键帧{ 从{ 左:0px; } 到{ 左:100px; } } 关于 只需将.animation name更改为animation name .te

我试图使用关键帧使文本从左向右移动,但是它不起作用,因为它只是保持静止。我如何解决这个问题,非常感谢您的帮助。注意:这只是一段较大代码的一部分

代码:

.text1{
位置:绝对位置;
底部:50%;
左:0px;
字体大小:20px;
字体系列:绿色,Arial字体;
.动画名称:lefttoright;
动画持续时间:3s;
}
@左向右关键帧{
从{
左:0px;
}
到{
左:100px;
}
}

关于

只需将
.animation name
更改为
animation name

.text1{
位置:绝对位置;
底部:50%;
左:0px;
字体大小:20px;
字体系列:绿色,Arial字体;
动画名称:lefttoright;
动画持续时间:3s;
}
@左向右关键帧{
从{
左:0px;
}
到{
左:100px;
}
}

关于

-叹气-真不敢相信我错过了。非常感谢。不客气:)