How to Shake an Image using CSS | Bloody Techie

Опубликовано: 04 Апрель 2026
на канале: Bloody Techie
28
like

Shake Your Images! Easy CSS Animation Tutorial for Beginners

Hey everyone, welcome back to Bloody Techie! Today, we're diving into the world of web design and CSS to learn how to create stunning icon bars for your website navigation. Whether you're a seasoned developer looking to enhance your skills or a beginner eager to explore the world of frontend design, this tutorial is for you.

In this tutorial, you'll learn how to create a captivating image shake effect using CSS.

We begin with a basic HTML structure, defining a webpage with a container 'div' and an image 'img' element. The image is placed inside the container, ready for styling.

Moving on to the CSS, we start with a CSS reset to ensure consistent styling across different browsers. Then, we set up the container to occupy the entire viewport, centering its content both horizontally and vertically.

The magic happens when we apply the :hover pseudo-class to the image. Upon hovering over the image, we trigger a CSS animation called "shake." This animation is defined using @keyframes, which specify a sequence of keyframe selectors and their corresponding styles.

The "shake" animation simulates a shaking effect by translating and rotating the image at various keyframes, creating a dynamic and eye-catching visual effect.

With just a few lines of CSS, you can easily add flair to your web projects and engage your audience with interactive design elements.

------------------------------------------------------------------------------------
Subscribe - ‪@Bloody_.Techie‬
------------------------------------------------------------------------------------
Inspirations
‪@MrBeast‬
‪@madangowri‬
‪@a2dchannel‬
‪@TechBossIndia‬
‪@TamilTechOfficial‬

#css #iconbar #cssiconbar #navigationbar #webdev #webdesign #tutorial #beginner #coding #Tutorial #WebDesign #IconBars #Navigation #FrontEndDevelopment #CSSDesign #UXDesign #WebDevelopment #bloodytechie #css #animation #tutorial #webdesign #development #beginner #imageanimation #shakingeffect #hover #seo #website

Tags
--------------------------------------------------------------------------------------
css animation, css tutorial, image animation, css for beginners, web design animation, shaking effect, hover animation, web development tutorial, front-end development, Different ways to shake an image using CSS, Adding a shake animation to an image with CSS, Using CSS to create a shaking effect


-------------------------------------------------------------------------------------
Song: Jarico - Island
supported by @FreeBackgroundMusicForCreators
#BackgroundMusicWithoutLimitations
https://bit.ly/2XoXFnb
-------------------------------------------------------------------------------------