MSK Institute LogoMSK.Institute
HomeCourses
Book Free Demo➔Sign In
Free Demo➔
MSK Institute LogoMSK.Institute

Leading computer training academy in Shikohabad for software engineering, Python, web development, and digital literacy.

ISO 9001:2015 Certified Center
Follow & Connect
4.9

Programs & Admissions

  • All CoursesCatalog
  • Learning PathsRoadmaps
  • Student ProjectsShowcase
  • Live Classes & ScheduleLive
  • Upcoming Batches
  • Campuses & LocationsHub
  • Verify Certificates
  • Book Free Demo Class

Resources & Tools

  • Free Online Mock TestsAll Tests
  • NIELIT CCC Mock TestFree
  • Course & Career FinderQuiz
  • Study Material Hub
  • All MSK ToolsHub
  • Keyboard ShortcutsNew
  • TypeQuest Speed LabTyping
  • MSK Code PlaygroundCode
  • Interactive Tutorials
  • Quick Cheatsheets

Institute & Contact

  • About MSK Institute
  • Careers & InternshipsHiring
  • Publications & Blogs
  • Gali No. 3, Near Gyan Jyoti Public School,
    Adarsh Nagar, Shikohabad, Uttar Pradesh 283135
  • +91 83930 42166
  • mskshikohabad@gmail.com
  • Hours:Mon – Sat: 8:00 AM – 7:00 PM | Sun: 10:00 AM – 2:00 PM
  • 4.9 ★(38 Google Reviews)
© 2026 MSK Institute. All rights reserved.•Privacy Policy•Terms of Service•Disclaimer•Contact Us

Shikohabad's Leading Computer & Coding Academy

Home
Courses
Live
Material
Transitions, Smooth Transforms, Scale & Custom Keyframe Animations0%
Study Materials
Tailwind CSSProgress 0%
1.1Why Tailwind CSS? Utility-First vs Traditional Semantic CSS1.2Installation via PostCSS, Vite & Next.js Framework Integration1.3Tailwind Core Spacing, Sizing, Padding & Margin Scales1.4Typography: Font Families, Sizes, Weights, Leading & Tracking
3.1State Variants: Hover, Focus, Active, Disabled & Group-Hover3.2Class-Based Dark Mode Setup with System Preference Support3.3Transitions, Smooth Transforms, Scale & Custom Keyframe Animations3.4Component Extraction, @apply Directives & Tailwind Merge (clsx)3.5Tailwind Config Customization: Colors, Fonts & Official Plugins
HomeTutorialsTailwind CSSTransitions, Smooth Transforms, Scale & Custom Keyframe Animations
Component Extraction, @apply Directives & Tailwind Merge (clsx)

Transitions, Smooth Transforms, Scale & Custom Keyframe Animations

Beginner12 min read•Updated: 2026-11-18•By Er. Sumit Kumar (MSK Institute)
Study MaterialsCheatsheet

Delightful micro-interactions and smooth state changes separate amateur websites from polished, professional web applications. Tailwind CSS provides hardware-accelerated transitions, 2D/3D transforms, and built-in CSS animations without writing cumbersome keyframes.


1. CSS Transitions: Duration, Timing & Properties

To animate a state change (such as hover background color), add the transition class along with duration and easing:

1<!-- Smooth Hover Card -->
2<div class="bg-white hover:bg-slate-50 p-6 rounded-xl border transition-colors duration-300 ease-in-out">
3 Hover over me for a smooth color fade!
4</div>
PropertyTailwind ClassDescription
Propertytransition-allTransitions all animatable CSS properties
transition-colorsTransitions color, background-color, border-color
transition-transformHardware-accelerated transforms (scale, rotate, translate)
transition-opacitySmooth fade-in and fade-out
Durationduration-150 / duration-300 / duration-500150ms, 300ms, 500ms animation duration
Easingease-linear / ease-in / ease-out / ease-in-outTiming bezier curve

2. Transforms: Scale, Rotate & Translate

Tailwind enables hardware-accelerated transforms directly through class names:

1<!-- Scale & Lift Card on Hover -->
2<div class="transform hover:-translate-y-2 hover:scale-105 hover:shadow-2xl transition-all duration-300 rounded-2xl bg-white p-6">
3 <h3 class="font-bold">Next.js 15 Masterclass</h3>
4</div>
5 
6<!-- Rotate Icon on Click -->
7<button class="flex items-center gap-2 group">
8 <span>Toggle Details</span>
9 <svg class="w-4 h-4 transform group-hover:rotate-180 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
10 <path stroke-width="2" d="M19 9l-7 7-7-7"/>
11 </svg>
12</button>

3. Built-in Keyframe Animations

Tailwind includes 4 production-ready animations out of the box:

1<!-- 1. Ping: Notification radar pulse -->
2<span class="animate-ping h-3 w-3 rounded-full bg-emerald-400 opacity-75"></span>
3 
4<!-- 2. Pulse: Skeleton loading state -->
5<div class="animate-pulse flex space-x-4">
6 <div class="rounded-full bg-slate-200 h-10 w-10"></div>
7 <div class="flex-1 space-y-2 py-1">
8 <div class="h-2 bg-slate-200 rounded"></div>
9 <div class="h-2 bg-slate-200 rounded w-5/6"></div>
10 </div>
11</div>
12 
13<!-- 3. Spin: Loading spinner -->
14<svg class="animate-spin h-5 w-5 text-blue-600" viewBox="0 0 24 24">
15 <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle>
16 <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8H4z"></path>
17</svg>
18 
19<!-- 4. Bounce: Attention grabber arrow -->
20<svg class="animate-bounce w-6 h-6 text-slate-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
21 <path stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"/>
22</svg>

Interactive Quiz• Knowledge Check

Multiple Choice Questions

Question 1
Which Tailwind utility class is commonly used to create shimmering skeleton loading screens?
Question 2
What is the benefit of using transition-transform instead of transition-all when animating element scale or position?
Question 3
Which class combination lifts an element 8px upward when hovered?
Question 4
How long does an animation run when styled with duration-300?
Question 5
What does the animate-spin utility class do?

Next Lesson

Component Extraction, @apply Directives & Tailwind Merge (clsx)

Continue learning with hands-on practice, examples, and exercises in the upcoming topic.

Related Lessons

Previous LessonNext Lesson
Class-Based Dark Mode Setup with System Preference SupportComponent Extraction, @apply Directives & Tailwind Merge (clsx)

Practice Quiz

Test your understanding of this lesson with 5 questions. Each question has one correct answer.

Mentor-Led Practical Training

Master Tailwind CSS with Hands-On Projects

Practice in live mentor-led sessions with real projects, mock tests, and verifiable certification at MSK Institute.

View Full CourseBook Free Demo
PreviousNext
PreviousPrevNext