- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Animate CSS flex-basis property
To implement animation on flex-basis property with CSS, you can try to run the following code
Example
<!DOCTYPE html> <html> <head> <style> .box { display: flex; background-color: green; } .box > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } div { animation: myanim 4s infinite; } @-webkit-keyframes myanim { 50% { flex-basis: 100px; } } </style> </head> <body> <h1>Quiz</h1> <div class = "box"> <div>Q1</div> <div>Q2</div> <div>Q3</div> <div style = "flex-basis: 350px">Q4</div> <div>Q5</div> <div>Q6</div> <div>Q7</div> <div>Q8</div> <div>Q9</div> </div> </body> </html>
- Related Articles
- Animate CSS flex property
- CSS flex-basis property
- Animate CSS flex-grow property
- Animate CSS flex-shrink property
- CSS shorthand property for the flex-grow, flex-shrink, and the flex-basis properties
- CSS flex property
- Animate bottom CSS property
- Animate CSS border property
- Animate CSS height property
- Animate CSS margin property
- Animate CSS right property
- Animate CSS order property
- Animate CSS width property
- CSS flex-flow Property
- CSS flex-shrink property

Advertisements