menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

🎨 Smooth ...
source image

Dev

2w

read

288

img
dot

Image Credit: Dev

🎨 Smooth UI Transitions in HTML with Grains.js, TailwindCSS and g-class directive

  • Grains.js introduces g-class directive for smooth UI transitions in HTML
  • g-class directive allows switching classes dynamically based on state
  • Example of using g-class directive to build a notification box with visibility toggle, error/success styles, and shake animation
  • g-class directive makes conditional styling effortless, enabling delightful UI transitions in plain HTML

Read Full Article

like

17 Likes

For uninterrupted reading, download the app