{"id":3053,"date":"2017-04-17T15:38:22","date_gmt":"2017-04-17T20:38:22","guid":{"rendered":"http:\/\/cssnewbie.com\/?p=2216"},"modified":"2017-04-17T15:38:22","modified_gmt":"2017-04-17T20:38:22","slug":"6-fun-css-snippets-for-your-projects","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/6-fun-css-snippets-for-your-projects\/","title":{"rendered":"6 Fun CSS Snippets for Your Projects"},"content":{"rendered":"<p>One of the reasons that CSS is so fun to play around with is that you can use it to create so many different kinds of effects or styles. The styling language is incredibly versatile and can actually be really fun to use if you know your way around it and enjoy being creative. What follows is a list of some of the most fun ways we could find to play with CSS. The snippets in the list below will remind you of just how much fun you can have as a developer. Check it out!<\/p>\n<p>1. <a href=\"http:\/\/codepen.io\/danielcgold\/pen\/mAYGrk\" target=\"_blank\" rel=\"noopener noreferrer\">Emoji Hats<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/danielcgold\/pen\/mAYGrk\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2217 aligncenter\" src=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-1.45.06-PM.png\" alt=\"Screen Shot 2017-04-14 at 1.45.06 PM\" width=\"394\" height=\"400\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This CSS Snippet can be used to add a fancy top hat to any of your favorite emojis. Add a hat to a pig, a frog, a cow, or a monkey&#8230;no matter which animal you choose, it&#8217;s just about guaranteed to look both hilarious and adorable (or don&#8217;t choose an animal at all, but a regular face emoji, or really go rogue and choose something like a cheeseburger to add your top hat to).<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/steinvc\/pen\/kxbgH\" target=\"_blank\" rel=\"noopener noreferrer\">Fun Textbox<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/steinvc\/pen\/kxbgH\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2218 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-1.48.55-PM-1024x427.png\" alt=\"Screen Shot 2017-04-14 at 1.48.55 PM\" width=\"578\" height=\"241\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet demonstrates how to have fun with a textbox. Typically textbox style is pretty straightforward and boring, but in this case, creative liberties have been taken to make the textbox look like a piece of paper from any notebook or journal. The old-fashioned typewriter font is also a nice touch that adds a sense of authenticity to this snippet. Another option for font might be one that looks like handwriting or handwritten script.<\/p>\n<p>3. <a href=\"http:\/\/codepen.io\/althamash\/pen\/aBKky\" target=\"_blank\" rel=\"noopener noreferrer\">Fun with Perspective<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/althamash\/pen\/aBKky\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2219 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-1.55.11-PM-1024x232.png\" alt=\"Screen Shot 2017-04-14 at 1.55.11 PM\" width=\"671\" height=\"152\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you ever find yourself wanting to play around with perspective and shadows, this snippet does a great job of doing just that. Use it as inspiration for your own perspective play, or add a few customizations and use it in your own projects. Things that you might want to customize include font-family, font-size, and text and shadow colors.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/rachsmith\/pen\/fBoiD\" target=\"_blank\" rel=\"noopener noreferrer\">Moving Circles<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/rachsmith\/pen\/fBoiD\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2220 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-1.58.12-PM-1024x312.png\" alt=\"Screen Shot 2017-04-14 at 1.58.12 PM\" width=\"712\" height=\"217\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you know what you&#8217;re doing, then there are so many fun effects and experiments\u00a0that you can achieve\u00a0using HTML5 canvas. This fun snippet uses HTML canvas to create a background of colorful animated circles that constantly drift around and in and out of the canvas viewport. The color, speed, and size of the circles can all be customized.<\/p>\n<p>5. <a href=\"http:\/\/codepen.io\/jonitrythall\/pen\/bivaG\" target=\"_blank\" rel=\"noopener noreferrer\">Franklin the Animated Fish<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/jonitrythall\/pen\/bivaG\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2221 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-1.59.41-PM-1024x422.png\" alt=\"Screen Shot 2017-04-14 at 1.59.41 PM\" width=\"607\" height=\"250\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>What&#8217;s more fun than an animated fish? The snippet creates a fish that swims around the viewport, swimming out of sight and then back into it. It also includes animated bubbles that have the appearance of floating around in the water, which is a nice realistic touch.<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/mandymichael\/pen\/mWXGZp\" target=\"_blank\" rel=\"noopener noreferrer\">Split Emojis<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/mandymichael\/pen\/mWXGZp\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2222 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-14-at-2.02.58-PM-1024x204.png\" alt=\"Screen Shot 2017-04-14 at 2.02.58 PM\" width=\"698\" height=\"139\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This might be the most fun snippet on the list. This snippet shows you how to split up an emoji so you can use components from two different emojis to create one cool hybrid &#8212; like the horse with the unicorn horn, a heart that&#8217;s half green and half purple, or a butterfly with two different color wings. It&#8217;s a pretty cool and unique effect that can be achieved relatively easily using this super fun snippet.<\/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>One of the reasons that CSS is so fun to play around with is that you can use it to create so many different kinds of effects or styles. The styling language is incredibly versatile and can actually be really [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/6-fun-css-snippets-for-your-projects\/\" title=\"Click to read '6 Fun CSS Snippets for Your Projects'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[172],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/3053"}],"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=3053"}],"version-history":[{"count":0,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/3053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2865"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}