Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hashnode CSS art challenge by Anees</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    
    <div class="sun">
    </div>
    <div class="sun-ray"></div>
    <div class="flower">
        
        <div class="logo-flower logo-flower2">
            <div class="circle"></div>
        </div>
        <div class="logo-flower logo-flower3">
            <div class="circle"></div>
        </div>
        <div class="logo-flower logo-flower4">
            <div class="circle"></div>
        </div>
        <div class="stem-leaf1">
            <div class="logo-flower logo-flower1">
                <div class="circle"></div>
            </div>
            <div class="stem stem1"></div>
            <div class="leaf leaf1"></div>
            <div class="leaf leaf2"></div>
        </div>
        <div class="stem-leaf2">
            <div class="stem stem2"></div>
            <div class="leaf leaf7"></div>
            <div class="leaf leaf8"></div>
        </div>
        <div class="stem-leaf3">
            <div class="stem stem4"></div>
            <div class="leaf leaf5"></div>
            <div class="leaf leaf6"></div>
        </div>
        <div class="stem-leaf4">
            <div class="leaf leaf3"></div>
            <div class="leaf leaf4"></div>
            <div class="stem stem3"></div>
        </div>
        
        <div class="hashnode">
            <div class="logo">
                <div class="logo-circle"></div>
                
            </div>
            <p class="text">hashnode</p>
        </div>  
        <div class="vase">
            <div class="vase-top"></div>
            <div class="vase-body"></div>
            <div class="shadow"></div>
        </div>
        
    </div>
</body>
</html>
              
            
!

CSS

              
                *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(45deg);}
}
@keyframes bend-stem1{
    100% {transform: rotate(-1deg);}
}
@keyframes bend-stem2{
    100% {transform: rotate(-1deg);}
}
@keyframes bend-stem3{
    100% {transform: rotate(1deg);}
}
@keyframes leaf-rotate{
    100% {transform: rotate(4deg);
        transform: translateX(5px);
    }
}
@keyframes leaf-rotate2{
    100% {transform: rotate(6deg);
        transform: translateX(-2px);
    }
}
@keyframes leaf-rotate3{
    100% {transform: rotate(10deg);
    }
}
@keyframes leaf-rotate4{
    100% {transform: rotate(65deg);
    }
}
@keyframes sun{
    0%{
        box-shadow: 0 0 20px rgba(255, 174, 0,0.7);
        transform: scale(110%);
    }
    100%{
        box-shadow: 0 0 10px rgba(255, 174, 0,0);
        transform: scale(100%);
    }
}
body{
    font-family: Arial, Helvetica, sans-serif;
    width:100%;
    height: 100vh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background: rgb(173, 198, 230);
}
.sun{
    height: 44px;
    width: 44px;
    border-radius: 50%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background: rgb(255, 174, 0);
    position: absolute;
    top: 20px;
    left: 30px;
}
.sun-ray{
    height: 44px;
    width: 44px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: -1;
    box-shadow: 0 0 20px rgba(255, 174, 0,0.9);
    animation: sun 3s linear alternate-reverse infinite;
}

.flower{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 100%;
    margin: 50px 50%;
}
.logo-flower{
    background: #2962FF;
    width: 45px;
    height: 45px;
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
    
}
.circle{
    border-radius: 50%;
    background: white;
    height: 20px;
    width: 20px;
}

.logo-flower1{
    top: 146px;
    left: 90px;
    animation: rotate 5s linear alternate-reverse infinite;
}
.logo-flower2{
    top: 85px;
    left: 140px;
    transform: rotate(60deg);
    animation: rotate 5s linear 0.3s alternate-reverse infinite;
}
.logo-flower3{
    left: 150px;
    top: 170px;
    transform: rotate(-35deg);
    animation: rotate 5s linear 0.1s alternate-reverse infinite;

}
.logo-flower4{
    top: 156px;
    left: 200px;
    transform: rotate(-30deg);
    animation: rotate 5s linear alternate-reverse 2s infinite;
}
.stem{
    border: solid #63B235;
    border-radius: 0 20px/60px;
    left: 20px;
    height: 100px;
    width: 20px;
    position: absolute;
}
.stem-leaf1{
    position: absolute;
    top: 10px;
    left: -10px;
    animation: bend-stem1 5s linear alternate-reverse infinite;
}
.stem-leaf2{
    position: absolute;
    top: 10px;
    left: -10px;
    animation: bend-stem2 5s linear alternate-reverse infinite;
}
.stem-leaf3{
    position: absolute;
    top: 2px;
    left: 2px;
    animation: bend-stem3 5s linear alternate-reverse infinite;
}
.stem-leaf4{
    position: absolute;
    top: 2px;
    left: 0px;
    animation: bend-stem3 5s linear alternate-reverse infinite;
}
.stem.stem1{
    border-radius: 20px/35px;
    border-left: hidden;
    border-bottom: hidden;
    top: 170px;
    left: 140px;
    height: 160px;
    width: 20px;
    transform: rotate(-20deg);
}
.stem.stem2{
    border-radius: 0 50% ;
    border-top: hidden;
    border-left: hidden;
    border-bottom: hidden;
    top: 100px;
    left: 154px;
    height: 250px;
    width: 20px;
    animation: bend-stem2 5s linear alternate-reverse infinite;
}
.stem.stem3{
    border-radius: 0 20px/60px ;
    border-left: hidden;
    border-bottom: hidden;
    top: 200px;
    left: 154px;
    height: 100px;
    width: 20px;
    transform: rotate(10deg);
}
.stem.stem4{
    border-radius: 90% 0 0 0;
    border-right: hidden;
    border-bottom: hidden;
    border-top:  hidden;
    top: 180px;
    left: 180px;
    height: 130px;
    width: 20px;
    transform: rotate(20deg);
}

.leaf{
    width: 10px;
    height: 10px;
    border-radius: 0 80%;
    background: #1c4b01;
    position: relative;
    z-index: 3;
}
.leaf1{
    transform: rotate(-35deg);
    position: absolute;
    left: 128px;
    top: 188px;
    animation: leaf-rotate 3s linear alternate-reverse infinite;
}
.leaf2{
    transform: rotate(90deg);
    position: absolute;
    left: 152px;
    top: 220px;
    animation: leaf-rotate4 5s linear alternate-reverse infinite;
}
.leaf3{
    transform: rotate(-90deg);
    position: absolute;
    left: 176px;
    top: 220px;
    animation: leaf-rotate3 5s linear alternate-reverse infinite;
}
.leaf4{
    transform: rotate(10deg);
    position: absolute;
    left: 166px;
    top: 230px;
    animation: leaf-rotate2 3s linear alternate-reverse infinite;
}
.leaf5{
    transform: rotate(-45deg);
    position: absolute;
    left: 178px;
    top: 250px;
    animation: rotate-leaf 5s linear alternate-reverse infinite;
}

.leaf6{
    transform: rotate(-70deg);
    position: absolute;
    left: 196px;
    top: 208px;
    animation: leaf-rotate 6s linear alternate-reverse infinite;
}
.leaf7{
    transform: rotate(-60deg);
    position: absolute;
    left: 172px;
    top: 129px;
    animation: leaf-rotate2 5s linear alternate-reverse infinite;
}
.leaf8{
    transform: rotate(-10deg);
    position: absolute;
    left: 162px;
    top: 144px;
    animation: leaf-rotate2 5s linear alternate-reverse infinite;
}
.hashnode{
    display: flex;
    align-items: center;
    position: absolute;
    left: 124px;
    top: 283px;
    z-index: 4;
}
.hashnode .logo{
    background: #2962FF;
    width: 12px;
    height: 12px;
    border-radius: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
    margin-right: 6px;
}
.logo-circle{
    border-radius: 50%;
    background: white;
    height: 6px;
    width: 6px;
}
.text{
 color: white;
}
.vase{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0px;
    top: 300px;
}
.vase-top{
    width: 120px;
    height: 20px;
    background: #801F00;
    border: solid 0.5px black;
    border-radius: 4px;
    position: relative;
    top: -58px;
    left: 110px;
}
.vase-body{
    border-top: 100px solid #801F00;
    border-left: solid 20px transparent;
    border-right: solid 20px transparent;
    border-radius: 0 0 30px 30px;
    height: 0;
    width: 100px;
}
.shadow{
    height: 50px;
    width: 120px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    filter: blur(30px);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    position: absolute;
    left: 110px;
    top: 70px
}
              
            
!

JS

              
                
              
            
!
999px

Console