Bootstrap 5 Tutorial In Hindi #42 | Placeholder Class Tutorial.

Hello Dear Readers, Today In this Post, You will learn Bootstrap 5 Tutorial In Hindi #42 | Placeholder Class Tutorial. Earlier I have shared the Bootstrap 5 Tutorial In Hindi #41 | Spinners Class Tutorial. and now it’s time to Bootstrap 5 Placeholder Class Tutorial.

 

In this tutorial, You will learn full Bootstrap 5. If you want to go deep into the tutorial so you can watch the full video which is below Hope it will help you all thank you for visiting.

 

In this tutorial, you will learn Bootstrap Tutorial In Hindi, Bootstrap 5 Spinners Class Tutorial. Here You can learn what is a bootstrap framework, what are the advantages of the bootstrap tutorial in Hindi. Make sure to Subscribe, Share the video, and Like it, for more tutorials in Hindi like this one!

 

Placeholders

Use loading placeholders for your components or pages to indicate something may still be loading.

 

About

Placeholders can be used to enhance the experience of your application. They’re built only with HTML and CSS, meaning you don’t need any JavaScript to create them. You will, however, need some custom JavaScript to toggle their visibility. Their appearance, color, and sizing can be easily customized with our utility classes.

Play Video

Example

In the example below, we take a typical card component and recreate it with placeholders applied to create a “loading card”. Size and proportions are the same between the two.

 

How it works

Create placeholders with the .placeholder class and a grid column class (e.g., .col-6) to set the width. They can replace the text inside an element or be added as a modifier class to an existing component.

 

We apply additional styling to .btns via ::before to ensure the height is respected. You may extend this pattern for other situations as needed, or add a   within the element to reflect the height when actual text is rendered in its place.

 

Width

You can change the width through grid column classes, width utilities, or inline styles.

 

Color

By default, the placeholder uses currentColor. This can be overridden with a custom color or utility class.

 

Sizing

The size of .placeholders are based on the typographic style of the parent element. Customize them with sizing modifiers: .placeholder-lg.placeholder-sm, or .placeholder-xs.

 

Animation

Animate placeholders with .placeholder-glow or .placeholder-wave to better convey the perception of something being actively loaded.

Leave a Reply

Your email address will not be published. Required fields are marked *

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.