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


  • NEW PROJECT – Centipede

    February 13, 2025

    CentipedeĀ is a bare-bones facsimile of the classic arcade game of the same name. Objective Continuing my exploration of Game Development with the Javascript Canvas API, I moved onto Centipede mostly by accident. Once again I avoided tutorials in order to try and work through the logic myself. The key goal with this game was handling […]

    Continue Reading
  • 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