Aakash Rao Profile picture
Apr 30 23 tweets 5 min read
⚡ All about CSS Transitions & Animations ⚡
✧ CSS concepts covered in this thread 🧵⇩

- CSS Animations
- CSS Transitions
- Keyframes
- Difference between Transition & Animation Property

Let's go!! ⇩
📌 What is CSS Animation?

⬘ CSS Animation property allows to us animate HTML elements & CSS properties without using JavaScript!

⬙ It consists of two components a style for CSS animation and a set of keyframes that indicate the start and end states of the animation's style.
➳ CSS Animation Properties

- animation-name
- animation-duration
- animation-timing-function
- animation-delay
- animation-count
- animation-direction
- animation-fill-mode
- animation play-state
➳ Instead of defining them individually, you can use the shorthand!

animation: name ⇝ duration ⇝ timing-function ⇝ delay ⇝ count ⇝ direction ⇝ fill-mode ⇝ play-state
📌 You can have an overview of all the CSS Animation Properties through this Cheatsheet!
You can access all of my Cheatsheets in high quality from Github Repository.

If you like it please give it a star⭐. Thanks for the support. 💜

github.com/AakashRao-dev/…
➳ Now as you know the basic properties of Animation property let's try to understand, What is a @𝗸𝗲𝘆𝗳𝗿𝗮𝗺𝗲𝘀 in CSS?

⬘ The @𝗸𝗲𝘆𝗳𝗿𝗮𝗺𝗲𝘀 is a container where we write our animation code.

⬖ Here we define when & which properties or values have to be changed.
⬗ We can specify when style change will happen in percent or with keywords "from" and "to", which is the same as 0% and 100%

⬙ 0% is the beginning of the animation, and 100% is when animation is complete

𝗡𝗼𝘁𝗲: For better browser support we should use 0% and 100% selectors
📌 Now as we collected all the elements for the recipe for animation! Let's finally cook it.

➳ Let's try to break & code a bouncing ball animation.

codepen.io/aakash_codes/p…
➳ Let's first try to break & code the animation property for our bouncing ball!
➳ Let's now break down the actual animation code inside our @𝗸𝗲𝘆𝗳𝗿𝗮𝗺𝗲𝘀 container!
📌 What are CSS Transitions?

⬘ CSS transitions are very similar to animations that allow us to change property values smoothly, but they always need to be triggered! [ex: hover or element being loaded]

⬙ Transitions cannot loop [Yes they are designed to run only once!]
➳ CSS Transition Properties

- transition-delay
- transition-duration
- transition-property
- transition-timing-function

Again there, we have a shorthand! ⇩

transition: delay ⇝ duration ⇝ property ⇝ timing-function
➳ transition-delay

⬘ Defines how long the transition has to wait before starting.

➳ transition-duration

⬘ Defines how long the transition lasts.
➳ transition-property

⬘ Defines which properties will transition. Here is a list of all the properties which can be transitioned! [𝗥𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗲-taken by MDN Web Docs]

➳ transition-timing-function

⬘ Defines how long the transition lasts.
📌 Let's see a quick example of CSS transition property!
➳ You can access the Codepen to check if you want for understanding transition property!

codepen.io/aakash_codes/p…
📌 Let's summarize here!

- Animations have no problem in looping. [ Transitions cannot loop ]

- The animation just start. They don’t need any kind of external trigger source. [ Transitions need a trigger!! ]
- Animation allows you to define Keyframes that vary from one state to another. [ Transitions animate an object from one point to another. ]

- The animations are hard to work in JavaScript. [ Transitions are easy to work in JavaScript. ]
🏁 Final Words

✧ I hope you get a good understanding of Animations & Transitions in CSS!

✧ What's next? You can try & play with CSS both of them & try some cool stuff. 🙌
💭 Feedbacks

✧ After reading through the entire thread, have you learned something worth it?

✧ What improvements will you suggest?

I will be happy to hear from you. Feedback from you would help me share better content in the future.
📌 If you are interested in following this series ⇩

⇝ Follow @Aakash_codes
⇝ To never miss anything, keep your 🔔 ON.
⇝ Share it with your friends if they are interested!

Thanks for the support 💜

Here is the complete infographic for series ⇩

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Aakash Rao

Aakash Rao Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Aakash_codes

Apr 29
⚡ CSS Animation All Properties Explained + Cheatsheet⚡ Image
[Animation Timing Function Values] Image
You can access all of my Cheatsheets in high quality from Github Repository.

If you like it please give it a star⭐. Thanks for the support. 💜
github.com/AakashRao-dev/…
Read 4 tweets
Apr 28
After a long time! Continuing the series again....🚀

⚡ 2D & 3D Transforms in CSS ⚡
Inside the thread 🧵⇣⇣⇣

⇨ This thread is just going to be an overview of CSS 2d & 3d transform properties!

⇨ Why? I want you to explore it yourself, try to code & understand it fully.

⇨ Though I have explained almost every property here + cheatsheet!

Let's go! 🚀
📌Before starting the thread, I would like to introduce you to @DevBytesApp

✧ It helps you learn about languages such as Python, JavaScript, SQL and many tech stacks like Web, Android, etc.

✧ It summarizes all the information in just 64 words.

🔗
play.google.com/store/apps/det…
Read 22 tweets
Apr 27
If you are looking to train your technical skills for the #Web2 & #Web3 🚀🚀

There is a place you can get cash rewards as you learn and complete quests 📚💰

A Thread 🧵↓
You can learn about programming languages like Rust, Python, Go, Solidity, and other technologies, while being rewarded for your time.
This is how to get an Early Access to the platform now:

✧ Go to app.stackup.dev
✧ Use code “Aakash” when signing up!

Or sign up using the link

bit.ly/3vj4Qhz
Read 5 tweets
Apr 24
⚡ 10 JavaScript Concepts, Every JS developer should learn ⚡
Before we begin if your are serious with your learning journey to become a good developer!

I got an offer for you, @codedamncom is organizing Codefest. A weekend to Learn and Practice Code for Free!

Don't let the opportunity run out! Checkout the link!
codedamn.com/codefest
🚥 Disclaimer

✧ This is just a general thread consists few important topics to know about it in JavaScript!

✧ I know there are many more to learn in JS but these are few which gives real fun when I first learned them

✧ And I consider them as the building block

Let's go ⇩
Read 15 tweets
Apr 23
____________________________________

28 Websites to keep yourself
Up-to-date.....
_____________________________________

Small Thread 🧵↓
📌Before starting the thread, I would like to introduce @DevBytesApp

✧ It helps you learn about languages such as Python, JavaScript, SQL and many tech stacks like Web, Android, etc.

✧ It summarizes all the information in just 64 words.

🔗
play.google.com/store/apps/det…
... Let's continue with our thread!

______________ News:- ______________

• Devbytes
• Daily Js
• Dev. to
• HTML5 Weekly
• Hacker News
• Reddit
• A list Apart
Read 8 tweets
Apr 23
⚡ How to start Freelancing as a Beginner? ⚡

A Small 🧵⇩
✧ Hola guys, after a short break I am back with my content! 😊

✧ If you are a beginner & thinking to start freelancing then this 🧵 is for you ⇩
Before we begin if your are serious with your learning journey to become a good developer!

I got an offer for you, @codedamncom is organizing Codefest. A weekend to Learn and Practice Code for Free!

Don't let the opportunity run out! Checkout the link!
codedamn.com/codefest
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(