{"id":3052,"date":"2017-03-27T20:18:38","date_gmt":"2017-03-28T01:18:38","guid":{"rendered":"http:\/\/cssnewbie.com\/?p=2202"},"modified":"2017-03-27T20:18:38","modified_gmt":"2017-03-28T01:18:38","slug":"top-7-css-snippets-featuring-outer-space","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/top-7-css-snippets-featuring-outer-space\/","title":{"rendered":"Top 7 CSS Snippets Featuring Outer Space"},"content":{"rendered":"<p>Outer space is trending, especially after the recent discovery of a whole lot of\u00a0<a href=\"http:\/\/www.usatoday.com\/story\/tech\/nation-now\/2017\/02\/15\/planetary-jackpot-astronomers-find-60-new-planets-lick-carnegie-exoplanet-survey\/97938174\/\" target=\"_blank\" rel=\"noopener noreferrer\">new planets<\/a>. If you want to keep your designs and projects on trend, maybe consider including some of these awesome space-themed CSS snippets in your sites.<\/p>\n<p>1. <a href=\"http:\/\/codepen.io\/Davide_sd\/pen\/zhAxB\" target=\"_blank\" rel=\"noopener noreferrer\">Pure CSS Planet<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/Davide_sd\/pen\/zhAxB\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2203 aligncenter\" src=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-11.53.08-AM.png\" alt=\"Screen Shot 2017-03-24 at 11.53.08 AM\" width=\"543\" height=\"265\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you&#8217;ve ever wanted to create something as cool as a planet using only CSS, this snippet will show you how to do it. The code in this tutorial creates a beautiful image of the planet Saturn, which belongs to our solar system.<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/chrisyboy53\/pen\/oXZzQb\" target=\"_blank\" rel=\"noopener noreferrer\">Traveling Through Space<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/chrisyboy53\/pen\/oXZzQb\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2204 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-11.55.29-AM-1024x468.png\" alt=\"Screen Shot 2017-03-24 at 11.55.29 AM\" width=\"462\" height=\"211\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet uses HTML5 Canvas and JavaScript to create the illusion that you&#8217;re flying through space, passing hundreds of thousands of stars at unbelievably high speeds.<\/p>\n<p>3. <a href=\"http:\/\/codepen.io\/mr_alien\/pen\/hzwau\" target=\"_blank\" rel=\"noopener noreferrer\">Alien Invasion<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/mr_alien\/pen\/hzwau\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2205 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-11.57.22-AM-1024x568.png\" alt=\"Screen Shot 2017-03-24 at 11.57.22 AM\" width=\"634\" height=\"352\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This CSS snippet includes both a UFO and a human being abducted by aliens. Definitely a fun bit of code to add to a space or alien themed project.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/loktar00\/pen\/zEhDB\" target=\"_blank\" rel=\"noopener noreferrer\">Planets with Points<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/loktar00\/pen\/zEhDB\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2206 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-11.54.46-AM-1024x374.png\" alt=\"Screen Shot 2017-03-24 at 11.54.46 AM\" width=\"679\" height=\"248\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Another space-themed snipped that uses HTML5 canvas, this snippet creates the illusion of planets with strategically placed dots, that give the planets the appearance of objects that are bathed in sun on one side, and cast into darkness on the other.<\/p>\n<p>5. <a href=\"http:\/\/codepen.io\/idiotWu\/pen\/Ahjkf\" target=\"_blank\" rel=\"noopener noreferrer\">Squishy Alien<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/idiotWu\/pen\/Ahjkf\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2207 aligncenter\" src=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-12.00.05-PM.png\" alt=\"Screen Shot 2017-03-24 at 12.00.05 PM\" width=\"484\" height=\"456\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This animated, pure CSS interpretation of what an alien might look like is as cute as can be.<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/brandonkennedy\/pen\/OVavaQ\" target=\"_blank\" rel=\"noopener noreferrer\">Space Ship Fun<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/brandonkennedy\/pen\/OVavaQ\"><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-2208 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-12.01.10-PM-1024x394.png\" alt=\"Screen Shot 2017-03-24 at 12.01.10 PM\" width=\"663\" height=\"255\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet features a space ship flying through the galaxy. The spaceship responds to movement from your cursor, so have fun moving it all around the viewport!<\/p>\n<p>7. <a href=\"http:\/\/codepen.io\/giuliacardieri\/pen\/EypPdg\" target=\"_blank\" rel=\"noopener noreferrer\">Solar System<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/giuliacardieri\/pen\/EypPdg\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-2209 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/03\/Screen-Shot-2017-03-24-at-12.02.27-PM-1024x197.png\" alt=\"Screen Shot 2017-03-24 at 12.02.27 PM\" width=\"665\" height=\"128\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The minimalist-inspired planets (and the sun) are a beautiful and realistic representation of the planets in our solar system, from order to size to colors, everything is more or less accurate (except the fact that it includes Pluto, which isn&#8217;t technically a planet, but still gets a place in the lineup). Remove the animations to really emphasize the minimalist vibe of this cool design.<\/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>Outer space is trending, especially after the recent discovery of a whole lot of\u00a0new planets. If you want to keep your designs and projects on trend, maybe consider including some of these awesome space-themed CSS snippets in your sites.<\/p>\n<p>1. Pure [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/top-7-css-snippets-featuring-outer-space\/\" title=\"Click to read 'Top 7 CSS Snippets Featuring Outer Space'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2864,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[171,174],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/3052"}],"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=3052"}],"version-history":[{"count":0,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/3052\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2864"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=3052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=3052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=3052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}