Yogesh Chauhan's Blog

Add animation to your skills bar using CSS

in CSS on July 31, 2021

Similar Post

Learn to create your skill bar using CSS

Let’s add some basic animation to the skills bar from the post above. Also, let’s polish elements with some styles too.

Let’s discuss a few CSS rules that will be used to add animation.

This code will create an animation using @keyframes that you can use for containers.

Using scaleX you can scale the element on x-axis which is what we want for the skill bars.

@keyframes fill {
  0% {
    opacity: 1;
    transform: scaleX(0);

  100% {
    opacity: 1;
    transform: scaleX(1);

Also, you need to set the transform-origin property to left. It will force the animation to start from left.

transform-origin: left;


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
How to add and remove capabilities from a role in WordPress?WordPressIntroduction to Angular modules Part 3: NgModules vs JavaScript modules and Angular librariesAngularHow to Validate User Name, Email Address and URL in PHP?PHP3 ways to pass a variable in url() function in SCSS (Sass)SCSSCheck If a String Contains a Specific Word in PHPPHPThe difference between Class declarations and Class expressions in JavaScriptJavaScriptWill SQL (Relational) Database become obsolete?SQL/MySQLHow to define visibility for a property in PHP?PHPHow to animate list items using CSS and JavaScript?CSSHow to create a simple stopwatch using JavaScript?JavaScriptALTER DATABASE in PostgreSQLPostgresDebugging in WordPress Part 2: WP_DEBUG_LOG and WP_DEBUG_DISPLAYWordPress