Loader with html and css

post

@# Create CSS Loader with HTML and CSS #@

Creating a Loader using HTML and CSS is a great way.Here's a step-by-step guide on how to make a Loader.

HTML Code


Yahaan diya gaya HTML structure ek 

loading animation ko define karta hai 

jismein SVG graphics aur animations 

shamil hain.

Explanation in Hindi:- 

div class="loader": Yeh main container 

hai jo SVG graphics ko hold karta hai.

svg aur path: Yeh SVG (Scalable Vector 

Graphics) elements hain jo shapes aur 

animations ko define karte hain.

defs: Yeh SVG definitions ko hold karta 

hai jaise gradients aur animations.

linearGradient: Yeh linear gradient ko 

define karta hai jo colors ko 

transition karne ke liye use hota hai.

stop: Yeh gradient mein stop points ko 

define karta hai.

animateTransform: Yeh element animation 

ko define karta hai jo SVG graphics par 

apply hota hai.

CSS Classes: Various CSS classes (e.g., 

absolute, inline-block, dash, spin) ko 

use karke elements ko style aur animate 

kiya gaya hai.

			

		


CSS Code


  Yahaan diya gaya CSS code ek loader 

  ke liye animations aur styling ko 

  define karta hai.

Explanation in Hindi:- 

.absolute class: Yeh element ko 

absolute positioning deti hai.

.inline-block class: Yeh element ko 

inline-block display property deti hai.

.loader class: Yeh element ko flex 

display aur vertical margin set karti 

hai.

.w-2 class: Yeh element ki width 0.5em 

set karti hai.

.dash class: Yeh element par dashArray 

aur dashOffset animations apply karti 

hai.

.spin class: Yeh element par multiple 

animations (spinDashArray, spin, 

dashOffset) apply karti hai aur 

transform-origin ko center set karti 

hai.

Keyframes Animations

@keyframes dashArray: Yeh animation 

stroke dash array ko modify karti hai.

@keyframes spinDashArray: Yeh animation 

stroke dash array ko modify karti hai 

lekin different pattern mein.

@keyframes dashOffset: Yeh animation 

stroke dash offset ko modify karti hai.

@keyframes spin: Yeh animation element 

ko rotate karti hai.

			

		

JS Code


				

				

			


Output



Comments

Popular posts from this blog

Multiples way to earn money online at home without Investment

create a animated text with html and css

create apple logo with html and css