{"id":2465,"date":"2017-05-22T19:43:11","date_gmt":"2017-05-22T19:43:11","guid":{"rendered":"http:\/\/cssreset.com\/?p=2465"},"modified":"2017-05-22T19:43:11","modified_gmt":"2017-05-22T19:43:11","slug":"how-to-make-css-flowers-with-these-8-code-snippets","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/how-to-make-css-flowers-with-these-8-code-snippets\/","title":{"rendered":"How to Make CSS Flowers With These 8 Code Snippets"},"content":{"rendered":"<p>Since it&#8217;s spring and everyone seems to be in the mood for blooms (real or created using any combination of CSS, HTML, and JavaScript), we thought now would be a great time to devote an entire post to all of the ways you can make flowers using only CSS, HTML, and (sometimes) JavaScript or jQuery. The flowers on this list are colorful, animated, and some of them were even designed to serve practical functions on your webpages, so that&#8217;s always a plus. Take a look at the curated list below of our favorite flora-inspired CSS snippets and see the beauty for yourself!<\/p>\n<p>1. <a href=\"http:\/\/codepen.io\/Davide_sd\/pen\/pexhs\" target=\"_blank\">Pure CSS Flower<\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2466 aligncenter\" alt=\"Screen Shot 2017-05-10 at 4.14.31 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.14.31-PM.png\" width=\"666\" height=\"492\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.14.31-PM.png 666w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.14.31-PM-300x221.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.14.31-PM-180x132.png 180w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/p>\n<p>Let&#8217;s start off with a simple one. This pure CSS flower has animated petals that look almost like they&#8217;re flowing in the breeze. With such defined petals, this flower is perfect for playing the &#8220;he loves me, he loves me not&#8221; game. Perhaps you&#8217;d like to customize the snippet so that when a petal is clicked, it gets plucked.<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/maxakohler\/pen\/ltFyG\" target=\"_blank\">Growing Flowers<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/maxakohler\/pen\/ltFyG\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-large wp-image-2467\" alt=\"Screen Shot 2017-05-10 at 4.17.02 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.17.02-PM-1024x279.png\" width=\"1024\" height=\"279\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.17.02-PM-1024x279.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.17.02-PM-300x81.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.17.02-PM-180x49.png 180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>This pure CSS tutorial creates flowers that actually appear to grow from the ground upon page load. It&#8217;s a really cool effect that is executed using CSS animations. As for the flowers themselves, they&#8217;ve got a minimalist, almost impressionist style that adds a really nice touch to the snippet&#8217;s theme.<\/p>\n<p>3. <a href=\"http:\/\/codepen.io\/jordanlachance\/pen\/yOJdRr\" target=\"_blank\">Flower Popup Menu<\/a><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-2468\" alt=\"Screen Shot 2017-05-10 at 4.19.36 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.19.36-PM.png\" width=\"740\" height=\"624\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.19.36-PM.png 740w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.19.36-PM-300x252.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.19.36-PM-180x151.png 180w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>This is one of the aforementioned &#8220;practical&#8221; snippets. The snippet starts out as a regular looking three-line menu icon, but when the icon is clicked, your navigation icons present themselves in a colorful, flower-inspired arrangement, rather than those boring old vertical menu bars. This snippet uses only CSS and HTML to achieve its effect.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/terabaud\/pen\/EKbLNW\" target=\"_blank\">Spinning SVG Flowers<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/terabaud\/pen\/EKbLNW\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-large wp-image-2469\" alt=\"Screen Shot 2017-05-10 at 4.21.48 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.21.48-PM-1024x426.png\" width=\"1024\" height=\"426\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.21.48-PM-1024x426.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.21.48-PM-300x124.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.21.48-PM-180x74.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.21.48-PM.png 1426w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>These delicate, pretty spinning flowers are created and animated using SVG code. They spin constantly in and out of the viewport on a never-ending loop.<\/p>\n<p>5. <a href=\"http:\/\/codepen.io\/russellk\/pen\/wWapeY\" target=\"_blank\">Spinning Loader Flower<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/russellk\/pen\/wWapeY\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-2470\" alt=\"Screen Shot 2017-05-10 at 4.28.25 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.28.25-PM.png\" width=\"794\" height=\"528\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.28.25-PM.png 794w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.28.25-PM-300x199.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.28.25-PM-180x119.png 180w\" sizes=\"(max-width: 794px) 100vw, 794px\" \/><\/a><\/p>\n<p>This flower also spins, but not in quite the same way as the SVG flowers. The flower itself doesn&#8217;t move, but the petals spin on an axis around the flowers center. This type of spinning action makes this particular flower perfect to use as an animated loading spinner. This snippet is created using only HTML and CSS.<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/hangsbreaker\/pen\/zpHEt\" target=\"_blank\">Happy Animated Sunflower<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/hangsbreaker\/pen\/zpHEt\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-full wp-image-2471\" alt=\"Screen Shot 2017-05-10 at 4.31.05 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.31.05-PM.png\" width=\"236\" height=\"384\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.31.05-PM.png 236w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.31.05-PM-184x300.png 184w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.31.05-PM-180x292.png 180w\" sizes=\"(max-width: 236px) 100vw, 236px\" \/><\/a><\/p>\n<p>This snippet uses CSS HTML and CSS to create a very happy looking animated sunflower. Not only is the sunflower rocking a smiley face, but it&#8217;s always moving side to side as though it&#8217;s doing a little happy dance. Definitely a fun way implement flowers into your projects.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>7. <a href=\"http:\/\/codepen.io\/brownerd\/pen\/JdzXRN\" target=\"_blank\">Potted Pastel Flowers and Plants<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/brownerd\/pen\/JdzXRN\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-large wp-image-2472\" alt=\"Screen Shot 2017-05-10 at 4.39.20 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.39.20-PM-1024x343.png\" width=\"1024\" height=\"343\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.39.20-PM-1024x343.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.39.20-PM-300x100.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.39.20-PM-180x60.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.39.20-PM.png 1592w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>My personal favorite snippet on this list, it creates some funky looking animated flowers and potted plants, all in pastel hues. From the prickly cactus, to the pinwheel-inspired colorful spinning bloom, to the heart shaped flora on the right, this snippet is full of whimsy and fun.<\/p>\n<p>8. <a href=\"http:\/\/codepen.io\/enxaneta\/pen\/mJoPgo\" target=\"_blank\">Canvas Blooming Flowers Effect<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/enxaneta\/pen\/mJoPgo\"><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-large wp-image-2473\" alt=\"Screen Shot 2017-05-10 at 4.41.32 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.41.32-PM-1024x299.png\" width=\"1024\" height=\"299\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.41.32-PM-1024x299.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.41.32-PM-300x87.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.41.32-PM-180x52.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-05-10-at-4.41.32-PM.png 1888w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>This snippet uses HTML5 canvas to create a blooming flowers effect that seems to be inspired by the 1970s based on the overall shape and style of the flowers, along with their general vintage hue.<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Since it&#8217;s spring and everyone seems to be in the mood for blooms (real or created using any combination of CSS, HTML, and JavaScript), we thought now would be a great time to devote an entire post to all of [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/how-to-make-css-flowers-with-these-8-code-snippets\/\" title=\"Click to read 'How to Make CSS Flowers With These 8 Code Snippets'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2473,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2465"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2465"}],"version-history":[{"count":1,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2465\/revisions"}],"predecessor-version":[{"id":2474,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2465\/revisions\/2474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2473"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}