0
Animation
Can i do a animation with css https://sololearn.com/compiler-playground/W22OeKkA3Css/?ref=app
6 Respostas
+ 5
Kajgeazy checkout this amazing course:-
https://www.sololearn.com/learn/courses/css-introduction
if you get stuck somewhere feel free to ask here, we are here 24x7 to help you but pls ask meaningful and coding related questions
Happy coding!
+ 4
Yes, you can create animations with CSS.
+ 1
Kajgeazy , yes, you can.
There are two ways to do this:
1.Transitions
These are simple animations activated by changes in class or css properties like hover, active etc.
Eg:
.button {
background-color: green;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
background-color: blue;
transform: scale(1.1);
}
2. Keyframes animations
They sre more complex and can be repetitive.
selector {
animation: *name *duration
*iteration-count *direction
}
@keyframes *name{
from{*property}
to {*property}
}
Hope this helps.
0
Kajgeazy
𝗬𝗲𝘀, 𝗬𝗼𝘂 𝗰𝗼𝘂𝗹𝗱 𝗰𝗿𝗲𝗮𝘁𝗲 𝗮𝗻𝗶𝗺𝗮𝘁𝗶𝗼𝗻𝘀 𝗯𝘆 𝘁𝗵𝗲 𝗧𝗿𝗮𝗻𝘀𝗶𝘁𝗶𝗼𝗻𝘀(𝗲𝗴:𝗵𝗼𝘃𝗲𝗿) 𝗼𝗿 𝗯𝘆 𝘂𝘀𝗶𝗻𝗴 𝗞𝗲𝘆𝗳𝗿𝗮𝗺𝗲𝘀 𝗮𝗻𝗶𝗺𝗮𝘁𝗶𝗼𝗻𝘀 𝗯𝘆 𝘂𝘀𝗶𝗻𝗴 𝗞𝗲𝘆𝗳𝗿𝗮𝗺𝗲𝘀🤞
0
Okay thanks
0
Kajgeazy , you're welcome.
Happy coding.