Skip to content

SyntaxSidekick/modern-card-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Modern Card Collection

A comprehensive collection of 25+ modern, responsive card UI components featuring smooth CSS animations and interactive elements. Perfect for web developers looking for beautiful, copy-paste card templates.

🌐 Live Demo: https://syntaxsidekick.github.io/modern-card-collection/

modern-card-collection

Modern Card Collection Preview

✨ Features

  • 🎯 25+ Card Types - Basic, Advanced, and Animated variants
  • πŸ“± Fully Responsive - Optimized for all screen sizes
  • 🎭 CSS Animations - Smooth hover effects and transitions
  • 🎨 Modern Design - Clean, professional styling
  • πŸ”§ Copy-Paste Ready - Interactive code viewer for each card
  • β™Ώ Accessible - ARIA labels and semantic HTML
  • πŸš€ SEO Optimized - Complete meta tags and structured data
  • πŸŽͺ No Dependencies - Pure HTML, CSS, and vanilla JavaScript

πŸ—οΈ Card Categories

πŸ“‹ Basic Cards

  • Simple Card Component
  • Image Card Template
  • Interactive Card with Actions
  • Icon Card with Visual Context
  • Badge Card with Status Indicators
  • Complete Featured Card

πŸš€ Advanced Cards

  • Profile Card - User profiles with stats
  • Product Card - E-commerce with ratings & pricing
  • Dashboard Stats - Analytics with mini charts
  • Social Media Post - Twitter/Facebook style cards
  • Pricing Card - Subscription plans with features
  • Article/Blog Card - Content with author info

🎬 Animated Cards

  • Card Flip - 3D flip animation on hover
  • Hover Lift - Elegant floating effect
  • Glow Effect - Pulsing glow animation
  • 3D Tilt - Perspective tilt following mouse
  • Slide Animation - Content sliding from sides
  • Morphing Card - Shape transformation effects
  • Particle Effect - Floating particle animations
  • Reveal Animation - Click-to-reveal hidden content

πŸš€ Quick Start

  1. Clone the repository

    git clone https://github.com/SyntaxSidekick/modern-card-collection.git
    cd modern-card-collection
  2. Open in browser

    # Simply open index.html in your browser
    # Or serve with a local server
    npx serve .
  3. Copy any card

    • Click the "show code" button on any card
    • Copy the HTML, CSS, and JavaScript
    • Paste into your project

πŸ“ Project Structure

modern-card-collection/
β”œβ”€β”€ index.html          # Main page with all card examples
β”œβ”€β”€ styles.css          # Complete CSS with nested styles
β”œβ”€β”€ scripts.js          # JavaScript for interactivity
β”œβ”€β”€ assets/            # Images and icons
β”œβ”€β”€ README.md          # This file
└── LICENSE            # MIT License

🎨 CSS Architecture

The project uses modern CSS nesting for better organization:

.card {
  /* Base card styles */
  
  &:hover {
    /* Hover effects */
  }
  
  &-image {
    /* Card image styles */
    
    img {
      /* Nested image styles */
    }
  }
  
  &.card-flip {
    /* Flip animation variant */
  }
}

πŸ› οΈ Customization

Colors

The color scheme uses CSS custom properties for easy theming:

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --text-color: #2c3e50;
  --bg-color: #f5f7fa;
}

Responsive Breakpoints

/* Mobile */
@media (max-width: 480px) { }

/* Tablet */
@media (max-width: 768px) { }

/* Desktop */
@media (min-width: 1024px) { }

πŸ”§ Browser Support

  • βœ… Chrome 60+
  • βœ… Firefox 55+
  • βœ… Safari 12+
  • βœ… Edge 79+

πŸ“– Usage Examples

Basic Implementation

<div class="card">
  <div class="card-header">
    <h3 class="card-title">Card Title</h3>
  </div>
  <div class="card-content">
    <p class="card-text">Your content here</p>
  </div>
</div>

With Animation

<div class="card card-hover-lift">
  <!-- Card content -->
</div>

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» About the Author

Riad Kilani - Senior Frontend Developer
🌐 Portfolio
πŸ’Ό LinkedIn
🐦 Twitter
πŸ’» GitHub

πŸ™ Acknowledgments

  • Design inspiration from Material Design and modern UI patterns
  • Icons from Material Icons and Font Awesome
  • Images from Unsplash
  • Fonts from Google Fonts

πŸ“Š SEO & Performance

  • ⚑ Lighthouse Score: 95+ Performance
  • πŸ” SEO Optimized: Complete meta tags and structured data
  • πŸ“± Mobile Friendly: Responsive design with touch optimization
  • β™Ώ Accessible: WCAG 2.1 compliant
  • πŸš€ Fast Loading: Optimized assets and deferred loading

⭐ Star this repository if you found it helpful!

Built with ❀️ by SyntaxSidekick

About

A collection of modern card UI designs by {Syntax}Sidekick

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors