{"id":2417,"date":"2017-05-04T08:02:08","date_gmt":"2017-05-04T08:02:08","guid":{"rendered":"http:\/\/cssreset.com\/?p=2417"},"modified":"2017-05-02T17:02:19","modified_gmt":"2017-05-02T17:02:19","slug":"8-fruit-inspired-css-snippets-for-summer","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/8-fruit-inspired-css-snippets-for-summer\/","title":{"rendered":"8 Fruit-Inspired CSS Snippets for Summer"},"content":{"rendered":"<p>Summer is just around the corner, and because nothing says summer like a bunch of fresh fruit, we&#8217;ve compiled a list of some of the coolest CSS code snippets that can be used to create a life-like representation of just about all of the best fruits of the season. Use these snippets in your projects or just play around with them to put yourself in the mood for warmer weather and fresh produce. More than a few of these code snippets look good enough to eat. Take a look at the list below and remember that any of the snippets that follow are easily customizable.<\/p>\n<p>1. <a href=\"http:\/\/codepen.io\/anguo\/pen\/yhfkb\" target=\"_blank\">Animated Lemon Slice<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/anguo\/pen\/yhfkb\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2418 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.14.46 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.14.46-PM.png\" width=\"470\" height=\"524\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.14.46-PM.png 470w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.14.46-PM-269x300.png 269w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.14.46-PM-180x200.png 180w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>These lemon slice snippet includes some CSS animation which gives the lemon slice the illusion of being squeezed. When the lemon is squeezed, drops of lemon juice drip down from the slice. The snippet is pure HTML and CSS, and doesn&#8217;t use any JavaScript to achieve the animated effect.<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/jonitrythall\/pen\/qrJEBj\" target=\"_blank\">Animated Grapes<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/jonitrythall\/pen\/qrJEBj\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2419 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.16.51 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.16.51-PM.png\" width=\"734\" height=\"440\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.16.51-PM.png 734w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.16.51-PM-300x179.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.16.51-PM-180x107.png 180w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This code snippet uses SVG tags to create a sort of conceptual representation of grapes. The code creates bunches of grapes made of perfectly round circles, each with different colors and different animations (for one bunch, even the different colors are animated).<\/p>\n<p>3.<a href=\"http:\/\/codepen.io\/simoncla\/pen\/njwvy\" target=\"_blank\"> CSS Animated Banana<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/simoncla\/pen\/njwvy\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2420 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.19.24 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.19.24-PM.png\" width=\"442\" height=\"446\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.19.24-PM.png 442w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.19.24-PM-150x150.png 150w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.19.24-PM-297x300.png 297w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.19.24-PM-180x181.png 180w\" sizes=\"(max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you grew up int he 90s or the early 2000s, then you probably know who this dancing banana is supposed to represent &#8212; it&#8217;s the banana from the Peanut Butter Jelly Time song (if you&#8217;re not sure what this is, spare yourself the headache that the energetic song tends to cause and don&#8217;t Google it). The dancing, animated banana is created without the use of JavaScript.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/ghostreef\/pen\/gyrHk\" target=\"_blank\">CSS Pineapple<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/ghostreef\/pen\/gyrHk\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2421 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.21.43 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.21.43-PM.png\" width=\"828\" height=\"608\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.21.43-PM.png 828w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.21.43-PM-300x220.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.21.43-PM-180x132.png 180w\" sizes=\"(max-width: 828px) 100vw, 828px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet creates a regal looking pineapple with a very tall stem and an animated background and an animated effect that&#8217;s applied to the yellow part of the fruit&#8217;s exterior for a psychedelic look. The palette of this snippet would serve as great inspiration for any summer-themed color scheme.<\/p>\n<p>5. <a href=\"http:\/\/codepen.io\/trekkiegirl\/pen\/egoXEw\" target=\"_blank\">CSS Cherry Pie<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/trekkiegirl\/pen\/egoXEw\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2422 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.26.02 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.26.02-PM-1024x442.png\" width=\"1024\" height=\"442\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.26.02-PM-1024x442.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.26.02-PM-300x129.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.26.02-PM-180x77.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.26.02-PM.png 1482w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The only thing that&#8217;s better than fresh fruit is fresh fruit in a pie. This CSS snippet shows you how to represent one of summer&#8217;s most delicious fruits in pie form.<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/opheliafl\/pen\/ONaQrp\" target=\"_blank\">CSS Animated Watermelon<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/opheliafl\/pen\/ONaQrp\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2423 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.27.26 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.27.26-PM.png\" width=\"648\" height=\"518\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.27.26-PM.png 648w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.27.26-PM-300x239.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.27.26-PM-180x143.png 180w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>This animated CSS snippet creates the illusion of a slice of watermelon being removed from an entire watermelon half. This realistic looking representation of the juicy, refreshing fruit includes the greek skin, the pink flesh, and those pesky little black seeds that always get stuck in peoples&#8217; teeth.<\/p>\n<p>7. <a href=\"http:\/\/codepen.io\/emily_shirley\/pen\/pearGm\" target=\"_blank\">Strawberry Cheesecake<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/emily_shirley\/pen\/pearGm\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2424 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.29.33 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.29.33-PM-1024x638.png\" width=\"1024\" height=\"638\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.29.33-PM-1024x638.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.29.33-PM-300x187.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.29.33-PM-180x112.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.29.33-PM.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Fruit on top of cake is almost as delicious as fruit inside of a pie. This CSS snippet shows you how to make a delicious looking slice of what looks to be New York style cheesecake topped with realistic looking sliced strawberries &#8212; seeds and all.<\/p>\n<p>8. <a href=\"http:\/\/codepen.io\/Bielecka\/pen\/EKOaME\" target=\"_blank\">CSS Fruit<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/Bielecka\/pen\/EKOaME\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2425 aligncenter\" alt=\"Screen Shot 2017-04-25 at 4.31.19 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.31.19-PM-1024x276.png\" width=\"1024\" height=\"276\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.31.19-PM-1024x276.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.31.19-PM-300x81.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-25-at-4.31.19-PM-180x48.png 180w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Learn how to create minimalist-style versions of all your favorite types of fruit using this CSS snippet. Apples, oranges, bananas, lemons, pears, strawberries, blueberries, peaches, cherries, raspberries, and grapes are all within your grasp thanks to this tutorial. There&#8217;s also a carton of yogurt, for good measure.<\/p>\n<p>&nbsp;<\/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>Summer is just around the corner, and because nothing says summer like a bunch of fresh fruit, we&#8217;ve compiled a list of some of the coolest CSS code snippets that can be used to create a life-like representation of just [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/8-fruit-inspired-css-snippets-for-summer\/\" title=\"Click to read '8 Fruit-Inspired CSS Snippets for Summer'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2423,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2417"}],"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=2417"}],"version-history":[{"count":1,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2417\/revisions"}],"predecessor-version":[{"id":2426,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2417\/revisions\/2426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2423"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}