UPDATE – Halloween CSS Effects

Category: | Posted on:October 23, 2021
shiver effect

Say hello to “Shiver”, a Halloween CSS effect that is definitely not ripped from a popular cult cinema streaming service. I added it to the the CSS Animation Archive project in the spirit of the season.

Simple Halloween CSS

Boyfriend and I have been pounding Giallo films on Shudder for the past two weeks, and I couldn’t get over the little tremble that the navigation links do when you hover over them. The CSS for this is so simple I was able to replicate it blind without inspecting the site. The keyframe animation simply juggles the element up, down, right, and left by 1 pixel every .05 seconds.
.shiver {
animation: shiver .05s infinite;
position: relative;
top: 0;
}
@keyframes shiver {
0% {
transform: translateY(-1px) translateX(-1px);
}
100% {
transform: translateY(1px) translateX(1px);
}
}

The demo includes the original hover-activated version of the effect as well in the Rollovers section.
.shiver-hvr {
position: relative;
top: 0;
}
.shiver-hvr:hover {
animation: shiver .05s infinite;
}
@keyframes shiver {
0% {
transform: translateY(-1px) translateX(-1px);
}
100% {
transform: translateY(1px) translateX(1px);
}
}

Happy Halloween!

Tags: , ,

Related Logs


  • UPDATE – Space Invaders

    January 28, 2025

    Quick presentational update to the Space Invaders project. Keep Shields Centered On Hit Shields will now automatically maintain a centered position when hit my an alien missile. I initially thought this was going to involve some math to determine whether the missile hit on the right or left side. I even put together a formula […]

    Continue Reading
  • NEW PROJECT – Space Invaders

    January 27, 2025

    Space Invaders is a bare-bones facsimile of the classic arcade game of the same name. Objective I wanted to take what I learned from the Asteroids Tutorial in my last project and iterate without the training wheels this time. Space Invaders has more lateral movement from the player and hostiles than in Asteroids, and has […]

    Continue Reading
  • NEW PROJECT – Asteroids

    January 9, 2025

    Asteroids is a bare-bones facsimile of the classic arcade game of the same name. Objective I want to focus on more creative projects this year in order to break up the grind of work skill development. I’ve always been passionate about game design, and there are a lot of free tools to chose from. My […]

    Continue Reading