This repository is a simple loading spinner Examples application developed using HTML, CSS, and vanilla JavaScript.
The main feature of this application is that all spinners are built using CSS only.
I look forward to your contribution to this application and to adding your own spinners, and this is the main goal of building this application
Click on the spinner you want and copy the corresponding HTML and CSS codes
-
Add the data of the spinner to be created into the data.js file located in the path
./js/data.js
in the form of an object as follows:{ // Spinner element name: 'YOUR_SPINNER_NAME', className: 'CSS_CLASS_NAME_OF_SPINNER_HTML_ELEMENT', innerContent: [ // (Optional) css class names of spinner child elements { className: 'CSS_CLASS_NAME_OF_SPINNER_CHILD_HTML_ELEMENT', }, ], },
-
Create a CSS file in the path:
./css/spinners/your-spinner-name.css
with the samename
as the spinner you created in thedata.js
file. -
Then import it into the file:
./css/spinners/all.css
-
Add to it the necessary styles to make the spinner work, using the same
className
of the spinner you created in thedata.js
file or any other related selectors (tag-names, pseudo-selectors ..etc) that will work.
- Free Google font Montserrat