{"id":16515,"date":"2013-02-22T23:01:43","date_gmt":"2013-02-22T15:01:43","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=16515"},"modified":"2025-04-04T01:29:23","modified_gmt":"2025-04-03T17:29:23","slug":"css3-bounce-effect","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/","title":{"rendered":"How to Create Bounce Effect with CSS3 Animation"},"content":{"rendered":"<p>Today, we are experimenting with CSS3 Animation. Previously, we explored <a href=\"https:\/\/www.hongkiat.com\/blog\/css3-animation-advanced-marquee\/\">how to create a \u201cmarquee\u201d effect using CSS3 Animation<\/a>. Now, we\u2019re going to craft a \u201cnotification bar\u201d that includes a bounce effect.<\/p>\n<p>Let\u2019s dive in.<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/css3-bounce-effect\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  View demo <\/span><\/a><\/p>\n<h2>Getting Started<\/h2>\n<p>Let\u2019s create a new HTML document and add the following markup to structure the notification bar.<\/p>\n<pre>\r\n&lt;div class=\"css3-notification\"&gt;\r\n    &lt;p&gt;Hi, this is a notification and it bounces.&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>Next, let\u2019s add some stylish decorations to enhance the look of the notification bar.<\/p>\n<pre>\r\n.css3-notification {\r\n    font-size: .8em;\r\n    text-align: center;\r\n    padding: 10px;\r\n    background-color: #111;\r\n    color: #fff;\r\n    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, .3);\r\n    text-transform: uppercase;\r\n    position: relative;\r\n    font-weight: bold;\r\n}\r\n<\/pre>\n<p>This is how it will appear in browsers at this point.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg\" alt=\"Basic Styles of CSS3 Notification Bar\" width=\"500\" height=\"212\"><\/figure>\n<h2>Writing CSS3 Animation Keyframes<\/h2>\n<p>The basic concept is that when an object initially drops and hits a surface, it bounces back to its highest point and then gradually reaches a lower height with each subsequent bounce until it comes to a stop. This motion is depicted in the image below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/bounce-effect.jpg\" alt=\"Illustration of Bounce Effect\" width=\"500\" height=\"300\"><\/figure>\n<h3>Step 1: Creating Animation Keyframe<\/h3>\n<p>First, let\u2019s define our CSS3 Animation Keyframe in the stylesheet. We\u2019ll simply name this keyframe <code>bounce<\/code>.<\/p>\n<pre>\r\n@keyframes bounce {\r\n\r\n}\r\n<\/pre>\n<p>Remember, this tutorial uses the standard <code>@keyframe<\/code> syntax from W3C for simplicity. However, for compatibility across browsers, vendor-specific prefixes like <code>-webkit-<\/code>, <code>-moz-<\/code>, and <code>-o-<\/code> are essential and will be provided later in the source codes.<\/p>\n<h3>Step 2: Specifying Initial Position<\/h3>\n<p>Initially, we set the object\u2019s position at the top. Using CSS3 Transforms, we apply a negative value for the <strong>Y-axis<\/strong>. Here, we specify the position from <code>0%<\/code> to <code>5%<\/code> of the animation duration, allowing the notification bar to remain briefly in that position.<\/p>\n<pre>\r\n0% {\r\n    transform: translateY(-100%);\r\n    opacity: 0;\r\n}\r\n5% {\r\n    transform: translateY(-100%);\r\n    opacity: 0;\r\n}\r\n<\/pre>\n<h3>Step 3: Specifying the First Bounce<\/h3>\n<p>Next, between <code>5%<\/code> and <code>15%<\/code> of the animation timeframe, the object moves towards its original position. We reset the <code>translateY<\/code> property to <code>0%<\/code>. Notably, when an object bounces, it displays elasticity.<\/p>\n<p>Upon impacting a solid surface, the impacted side often compresses or deforms slightly. Accordingly, we reduce the <code>padding-bottom<\/code> from <code>10px<\/code> to <code>5px<\/code> to simulate this effect.<\/p>\n<pre>\r\n15% {\r\n    transform: translateY(0);\r\n    padding-bottom: 5px;\r\n}\r\n<\/pre>\n<p>After the impact, the object bounces upwards, reaching its peak height at <code>30%<\/code> of the timeframe, set at <code>-50%<\/code> on the Y-axis.<\/p>\n<pre>\r\n30% {\r\n    transform: translateY(-50%);\r\n}\r\n<\/pre>\n<h3>Step 4: Specifying the Second Bounce<\/h3>\n<p>After reaching its highest point, the object returns to the <code>0<\/code> position, effectively hitting the ground again. This time, the object will be less deformed than during its first impact. We adjust the <code>padding-bottom<\/code> to <code>6px<\/code>.<\/p>\n<pre>\r\n40% {\r\n    transform: translateY(0%);\r\n    padding-bottom: 6px;\r\n}\r\n<\/pre>\n<p>The object then makes a second bounce, reaching a height lower than the first one; it moves up <code>30%<\/code> from its current position.<\/p>\n<pre>\r\n50% {\r\n    transform: translateY(-30%);\r\n}\r\n<\/pre>\n<h3>Step 5: Continuously Bouncing Until It Stops<\/h3>\n<p>The bouncing continues, diminishing slightly with each bounce until the end of the animation timeframe. Below are the settings for the remainder of the animation, from <code>70%<\/code> to <code>100%<\/code> of the duration.<\/p>\n<pre>\r\n70% {\r\n    transform: translateY(0%);\r\n    padding-bottom: 7px;\r\n}\r\n80% {\r\n    transform: translateY(-15%);\r\n}\r\n90% {\r\n    transform: translateY(0%);\r\n    padding-bottom: 8px;\r\n}\r\n95% {\r\n    transform: translateY(-7%);\r\n}\r\n97% {\r\n    transform: translateY(0%);\r\n    padding-bottom: 9px;\r\n}\r\n99% {\r\n    transform: translateY(-3%);\r\n}\r\n100% {\r\n    transform: translateY(0);\r\n    padding-bottom: 9px;\r\n    opacity: 1;\r\n}\r\n<\/pre>\n<p>Now, you can view the bounce effect in action via the link below.<\/p>\n<p><a href=\"https:\/\/hongkiat.github.io\/css3-bounce-effect\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  View demo <\/span><\/a>\n<a href=\"https:\/\/github.com\/hongkiat\/css3-bounce-effect\/\" class=\"su-button su-button-style-flat\" style=\"color:#FFFFFF;background-color:#2D89EF;border-color:#246ec0;border-radius:0px\" target=\"__blank\" rel=\"noopener nofollow\"><span style=\"color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#6cadf4;border-radius:0px;text-shadow:none\"><i class=\"sui sui-external-link\" style=\"font-size:16px;color:#fff\"><\/i>  Download codes <\/span><\/a><\/p>\n<h2>Further Resources<\/h2>\n<p>Below are more resources for delving deeper into CSS3 Animation, Transformations, and Bounce Effects.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.hongkiat.com\/blog\/css3-animation-advanced-marquee\/\">Creating Advanced \u201cMarquee\u201d With CSS3 Animation<\/a> \u2014 Hongkiat.com<\/li>\n<li><a href=\"https:\/\/www.hongkiat.com\/blog\/css3-2d-transformation\/\">CSS3 2D Transforms<\/a> \u2014 Hongkiat.com<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/physics.stackexchange.com\/questions\/22945\/what-are-all-the-equations-we-use-to-calculate-how-bounces-work\">What are all the equations we use to calculate how bounces work?<\/a> \u2014 StackExchange<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/api.jqueryui.com\/bounce-effect\/\">Bounce Effect with jQuery<\/a> \u2014 jQuery.com<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/tympanus.net\/codrops\/2012\/05\/22\/creating-an-animated-3d-bouncing-ball-with-css3\/\">3D Bouncing Ball with CSS3<\/a> \u2014 Codrops<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a \u201cmarquee\u201d effect using CSS3 Animation. Now, we\u2019re going to craft a \u201cnotification bar\u201d that includes a bounce effect. Let\u2019s dive in. Getting Started Let\u2019s create a new HTML document and add the following markup to structure the notification bar. &lt;div class=&#8221;css3-notification&#8221;&gt;&hellip;<\/p>\n","protected":false},"author":113,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392,352],"tags":[507,506,2016],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create Bounce Effect with CSS3 Animation - Hongkiat<\/title>\n<meta name=\"description\" content=\"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a &quot;marquee&quot; effect using CSS3 Animation. Now, we&#039;re going to craft\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create Bounce Effect with CSS3 Animation\" \/>\n<meta property=\"og:description\" content=\"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a &quot;marquee&quot; effect using CSS3 Animation. Now, we&#039;re going to craft\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-22T15:01:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-03T17:29:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg\" \/>\n<meta name=\"author\" content=\"Thoriq Firdaus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tfirdaus\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thoriq Firdaus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/\"},\"author\":{\"name\":\"Thoriq Firdaus\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\"},\"headline\":\"How to Create Bounce Effect with CSS3 Animation\",\"datePublished\":\"2013-02-22T15:01:43+00:00\",\"dateModified\":\"2025-04-03T17:29:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/\"},\"wordCount\":559,\"commentCount\":41,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-bounce-effect\\\/basic-styles.jpg\",\"keywords\":[\"CSS\",\"HTML\",\"HTML5 \\\/ CSS3 Tutorials\"],\"articleSection\":[\"Coding\",\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/\",\"name\":\"How to Create Bounce Effect with CSS3 Animation - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-bounce-effect\\\/basic-styles.jpg\",\"datePublished\":\"2013-02-22T15:01:43+00:00\",\"dateModified\":\"2025-04-03T17:29:23+00:00\",\"description\":\"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a \\\"marquee\\\" effect using CSS3 Animation. Now, we're going to craft\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-bounce-effect\\\/basic-styles.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/css3-bounce-effect\\\/basic-styles.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/css3-bounce-effect\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create Bounce Effect with CSS3 Animation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e7948c7a175d211496331e4b6ce55807\",\"name\":\"Thoriq Firdaus\",\"description\":\"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.\",\"sameAs\":[\"https:\\\/\\\/thoriq.com\",\"https:\\\/\\\/x.com\\\/tfirdaus\"],\"jobTitle\":\"Web Developer\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/thoriq\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create Bounce Effect with CSS3 Animation - Hongkiat","description":"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a \"marquee\" effect using CSS3 Animation. Now, we're going to craft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/","og_locale":"en_US","og_type":"article","og_title":"How to Create Bounce Effect with CSS3 Animation","og_description":"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a \"marquee\" effect using CSS3 Animation. Now, we're going to craft","og_url":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2013-02-22T15:01:43+00:00","article_modified_time":"2025-04-03T17:29:23+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg","type":"","width":"","height":""}],"author":"Thoriq Firdaus","twitter_card":"summary_large_image","twitter_creator":"@tfirdaus","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Thoriq Firdaus","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/"},"author":{"name":"Thoriq Firdaus","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807"},"headline":"How to Create Bounce Effect with CSS3 Animation","datePublished":"2013-02-22T15:01:43+00:00","dateModified":"2025-04-03T17:29:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/"},"wordCount":559,"commentCount":41,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg","keywords":["CSS","HTML","HTML5 \/ CSS3 Tutorials"],"articleSection":["Coding","Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/","url":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/","name":"How to Create Bounce Effect with CSS3 Animation - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg","datePublished":"2013-02-22T15:01:43+00:00","dateModified":"2025-04-03T17:29:23+00:00","description":"Today, we are experimenting with CSS3 Animation. Previously, we explored how to create a \"marquee\" effect using CSS3 Animation. Now, we're going to craft","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/css3-bounce-effect\/basic-styles.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/css3-bounce-effect\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create Bounce Effect with CSS3 Animation"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e7948c7a175d211496331e4b6ce55807","name":"Thoriq Firdaus","description":"Thoriq is a writer for Hongkiat.com with a passion for web design and development. He is the author of Responsive Web Design by Examples, where he covered his best approaches in developing responsive websites quickly with a framework.","sameAs":["https:\/\/thoriq.com","https:\/\/x.com\/tfirdaus"],"jobTitle":"Web Developer","url":"https:\/\/www.hongkiat.com\/blog\/author\/thoriq\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-4in","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=16515"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16515\/revisions"}],"predecessor-version":[{"id":73573,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/16515\/revisions\/73573"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=16515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=16515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=16515"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=16515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}