Soothing Clouds in CSS3


/ Published in: CSS
Save to your folder(s)

Just came across pure css3 soothing clouds, looks awesome, checkout!


Copy this code and paste it in your HTML
  1. HTML -
  2.  
  3. <div id = "cloud"><span class='shadow'></span></div>
  4.  
  5. CSS -
  6.  
  7. body {
  8. background: #ccc;
  9. }
  10. #cloud {
  11. width: 350px; height: 120px;
  12.  
  13. background: #f2f9fe;
  14. background: linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  15. background: -webkit-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  16. background: -moz-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  17. background: -ms-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  18. background: -o-linear-gradient(top, #f2f9fe 5%, #d6f0fd 100%);
  19.  
  20. border-radius: 100px;
  21. -webkit-border-radius: 100px;
  22. -moz-border-radius: 100px;
  23.  
  24. position: relative;
  25. margin: 120px auto 20px;
  26. }
  27.  
  28. #cloud:after, #cloud:before {
  29. content: '';
  30. position: absolute;
  31. background: #f2f9fe;
  32. z-index: -1
  33. }
  34.  
  35. #cloud:after {
  36. width: 100px; height: 100px;
  37. top: -50px; left: 50px;
  38.  
  39. border-radius: 100px;
  40. -webkit-border-radius: 100px;
  41. -moz-border-radius: 100px;
  42. }
  43.  
  44. #cloud:before {
  45. width: 180px; height: 180px;
  46. top: -90px; right: 50px;
  47.  
  48. border-radius: 200px;
  49. -webkit-border-radius: 200px;
  50. -moz-border-radius: 200px;
  51. }
  52.  
  53. .shadow {
  54. width: 350px;
  55. position: absolute; bottom: -10px;
  56. background: #000;
  57. z-index: -1;
  58.  
  59. box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
  60. -moz-box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
  61. -webkit-box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.4);
  62.  
  63. border-radius: 50%;
  64. -moz-border-radius: 50%;
  65. -webkit-border-radius: 50%;
  66. }

URL: http://thecodeplayer.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.