This is a lightweight(1.1KB) Glassmorphism Library to get the GLASSY effect in any of your frontend project.
Installation:
USING NPM:
npm install glassyeffect
and in your ReactJS file
import 'glassyeffect'
and in your css file
@import "glassyeffect/index.css";
or
@import "glassyeffect";
or
add below line of code in your html file
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/glassyeffect@1.1.7/index.css"
/>
or CDN LINK: https://cdn.jsdelivr.net/npm/glassyeffect@1.1.7/index.css
import this CDN link at the end of your body closing tag and write the class of the effect which you want in your project.
<script src="https://cdn.jsdelivr.net/npm/glassyeffect@1.1.7/index.css"></script>
Checkout the demo @
Rahul Nag Repo - https://rahulnag.github.io/glassy-effect/
NOTE: Feel free to create an issue
HOW TO USE THIS LIBRARY:
STEP1: IMPORT THIS LIBRARY AT END OF BODY TAG
<script src="https://cdn.jsdelivr.net/npm/glassyeffect@1.1.7/index.css"></script>
https://rahulnag.github.io/glassy-effect/ AND GET THE CLASS NAME OF GLASS EFFECT OF YOUR CHOICE.
STEP2: CHECK THE DEMO LINK<div class="card glassType3">
<h3>THIS IS CARD 3</h3>
</div>
COPY AND PASTE THE CLASSNAME SHOWN IN https://rahulnag.github.io/glassy-effect/.