[Utilities][Opacity] Add opacity classes
See original GitHub issueEasily change the opacity of elements with the opacity utilities.
This can be very useful in some context, for example :
<section class="module-list {% if not hook['active'] %} opacity-50 {% endif %}">
Instead of :
<section class="module-list" {% if not hook['active'] %} style="opacity:50%" {% endif %}>
I can provide a PR if you are interested in this feature.
- opacity-10 => opacity:10%
- opacity-20 => opacity:20%
- opacity-30 => opacity:30%
- opacity-40 => opacity:40%
- opacity-50 => opacity:50%
- opacity-60 => opacity:60%
- opacity-70 => opacity:70%
- opacity-80 => opacity:80%
- opacity-90 => opacity:90%
- opacity-100 => opacity:100%
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Opacity · Bootstrap v5.1
The opacity property sets the opacity level for an element. The opacity level describes the transparency level, where 1 is not transparent at...
Read more >Bootstrap Opacity Classes - Custom CSS
Update: Bootstrap 5 now includes opacity utility classes. Below are custom styles you can use in older versions. Bootstrap 4 does not have...
Read more >Bootstrap Opacity -- Tutorials with advanced examples
Set element's opacity with the opacity utility class. Staticfree. Change the opacity of the element by adding .opacity-* class. Opacity 0%. Opacity 5%....
Read more >Bootstrap Opacity - examples & tutorial
Opacity built with the latest Bootstrap 5. Set the opacity level and describe the transparency level class for an element such as navbar,...
Read more >Extended Bootstrap Opacity Utilities by Keenthemes
Overview. Metronic sets custom opacity classes in src/sass/components/helpers/_opacity. scss and through a SASS variable $opacity-values defined in src/sass/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There should be one for opacity: 0 too. In fact that one should be the most important.
Also, do not use percentage values for opacity.
Finally, there is no need for a fully opaque class because it is that by default.
I can do that @PululuK