Will text animation work here. Check whether this code is correct or not.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Will text animation work here. Check whether this code is correct or not..

transform-style: preserve-3d; animation: 5s infinite alternate ease-in-out -7.5s; animation-fill-mode: forwards; transform: rotateY(40deg) rotateX(33deg) translateZ(0);

5th Oct 2017, 2:59 AM
Lalith Kumar
Lalith Kumar - avatar
9 Answers
+ 1
ease in out is animation name
5th Oct 2017, 3:07 AM
Lalith Kumar
Lalith Kumar - avatar
+ 1
animation goes to and fro so negative value
5th Oct 2017, 3:07 AM
Lalith Kumar
Lalith Kumar - avatar
+ 1
will this code work now
5th Oct 2017, 3:10 AM
Lalith Kumar
Lalith Kumar - avatar
+ 1
should i mention time in from { "here"} and to{"here"}
5th Oct 2017, 3:16 AM
Lalith Kumar
Lalith Kumar - avatar
- 1
what are you doing here: 1. Where is the animation name 2. Why a negative value in seconds After fixing that animation on text should work, probably you might also position absolute the text.
5th Oct 2017, 3:05 AM
Niush
Niush - avatar
- 1
no no the animation name like drop, slide....etc. animation-name: drop; and, @keyframes drop{ from{} to{} }
5th Oct 2017, 3:10 AM
Niush
Niush - avatar
- 1
ease-in-out is how smooth animation is. It means ease the animation when starting and when it ends.
5th Oct 2017, 3:11 AM
Niush
Niush - avatar
- 1
yes after you put the element property from and to.
5th Oct 2017, 3:14 AM
Niush
Niush - avatar
- 1
.yourText{ animation: mymove 3s ease-in-out infinite; } @keyframes mymove {    0%   {top: 0px;}    25% {top: 200px;}    75% {top: 50px}    100% {top: 100px;} }
5th Oct 2017, 3:20 AM
Niush
Niush - avatar