Search

Nalezeno "css animation": 38

CSS Infinite Slider Flipping Through Polaroid Images


In the last article, we made a pretty cool little slider (or “carousel” if that’s what you prefer) that rotates in a circular direction. This time we are going to make one that flips through a stack of Polaroid … CSS Infinite Slider Flipping Through Polaroid Images originally...

CSS Infinite and Circular Rotating Image Slider


Image sliders (also called carousels) are everywhere. There are a lot of CSS tricks to create the common slider where the images slide from left to right (or the opposite). It’s the same deal with the many JavaScript libraries out … CSS Infinite and Circular Rotating Image Slider originally...

Hacking CSS Animation State and Playback Time


CSS-only Wolfenstein is a little project that I made a few weeks ago. It was an experiment with CSS 3D transformations and animations. Inspired by the FPS demo and another Wolfenstein CodePen, I decided to build my own version. … Hacking CSS Animation State and Playback Time originally...

No Motion Isn’t Always prefers-reduced-motion


There is a code snippet that I see all the time when the media query prefers-reduced-motion is talked about. Here it is: @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms...

How to Make a Pure CSS 3D Package Toggle


You know how you can get cardboard boxes that come totally flat? You fold ‘em up and tape ‘em to make them into a useful box. Then when it’s time to recycle them, you cut them back apart to flatten … How to Make a Pure CSS 3D Package Toggle originally published on CSS-Tricks. You should...

Diagonal Stripes Wipe Animation


I was playing this game on Apple Arcade the other day called wurdweb. It’s a fun little game! Little touches like the little shape dudes that walk around the screen (but otherwise don’t do anything) give it a lot … The post Diagonal Stripes Wipe Animation appeared first...

Recreating the Apple Music Hits Playlist Animation in CSS


Apple Music has this “Spatial Audio” feature where the direction of the music in your headphones is based on the location of the device. It’s tough to explain just how neat it is. But that’s not what I’m here to … The post Recreating the Apple Music Hits...

A Handy Little System for Animated Entrances in CSS


I love little touches that make a website feel like more than just a static document. What if web content wouldn’t just “appear” when a page loaded, but instead popped, slid, faded, or spun into place? It might be a … The post A Handy Little System for Animated Entrances in CSS appeared...

Of Course We Can Make a CSS-Only Clock That Tells the Current Time!


Let’s build a fully functioning and settable “analog” clock with CSS custom properties and the calc() function. Then we’ll convert it into a “digital” clock as well. All this with no JavaScript! Here’s a quick look at the clocks … The post Of Course We Can Make a CSS-Only Clock That Tells...

Advanced CSS Animation Using cubic-bezier()


When dealing with complex CSS animations, there is a tendency to create expansive @keyframes with lots of declarations. There are a couple of tricks though that I want to talk about that might help make things easier, while staying in … The post Advanced CSS Animation Using cubic-bezier()...

Image Fragmentation Effect With CSS Masks and Custom Properties


Geoff shared this idea of a checkerboard where the tiles disappear one-by-one to reveal an image. In it, an element has a background image, then a CSS Grid layout holds the “tiles” that go from a filled background color to … The post Image Fragmentation Effect With CSS Masks and Custom...

Exploring @property and its Animating Powers


Uh, what’s @property? It’s a new CSS feature! It gives you superpowers. No joke, there is stuff that @property can do that unlocks things in CSS we’ve never been able to do before. While everything about @property is exciting, … The post Exploring @property and its Animating Powers appeared...

Animating a CSS Gradient Border


This little trick for gradient borders is super useful: .border-gradient { border: 5px solid; border-image-slice: 1; border-image-source: linear-gradient(to left, #743ad5, #d53a9d); } Here’s some basic demos from our article on the subject. Sephanie Eckles was sharing around the idea...

Re-Creating the Porky Pig Animation from Looney Tunes in CSS


You know, Porky Pig coming out of those red rings announcing the end of a Looney Tunes cartoon. We’ll get there, but first we need to cover some CSS concepts. Everything in CSS is a box, or rectangle. Rectangles … The post Re-Creating the Porky Pig Animation from Looney Tunes in CSS appeared...

Checkerboard Reveal


Back when I was 10, I remember my cousin visiting our house. He was (and still is) a cool kid, the kind who’d bring his own self-programmed chess game on a floppy disk. And his version of chess was … The post Checkerboard Reveal appeared first on CSS-Tricks. You can support CSS-Tricks...

AnimXYZ


There are quite a few CSS animation libraries. They tend to be a pile of class names that you can apply as needed like “bounce” or “slide-right” and it’ll… do those things. They tend to be pretty opinionated with … The post AnimXYZ appeared first...

Lessons Learned from Sixty Days of Re-Animating Zombies with Hand-Coded CSS


I’ll be linking to individual Pens as I discuss the lessons I learned, but if you’d like to get a sense of the entire project, check out 60 days of Animation on Undead Institute. I started this project to end on August 1st, 2020, coinciding with the publication of a book I wrote featuring...

Ground Rules for Web Animations


Animations can make a site stand out. Or, they can just as easily kill the experience. When working with web animations, there are a few things that could go wrong like adding animations that serve no purpose, setting durations that are  too long or too quick, or not using right type...

Timer Bars in CSS with Custom Properties


I was working on a thing the other day that needed a visible timer. There was UI precedent for this type of timer on the project. People didn’t want to see numbers ticking downward; it was more ideal to see a “bar” drain away from full to empty. I mention that because there...

How to Re-Create a Nifty Netflix Animation in CSS


The design for Netflix’s browse page has remained pretty similar for a few years now. One mainstay component is the preview slider that allows users to scroll through content and hover on items to see a preview. One unique characteristic of the UI is its hover behavior. When a show preview...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace