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

              
                <div class="container">
    <div class="clock">
        <div class="hour-arm"></div>
        <div class="minute-arm"></div>
        <div class="center"></div>
        <div class="text">
            <h3>2<br/>0<br/>1<br/>7</h3>
            <h3>Anxiety</h3>
            <h3>disappointment</h3>
            <h3>diseases</h3>
            <h3>corruption</h3>
            <h3>hate</h3>
            <h3>setbacks</h3>
            <h3>failures</h3>
            <h3>frustration</h3>
            <h3>regrets</h3>
            <h3>misfortune</h3>
            <h3>darkness</h3>

            <h3>2<br/>0<br/>1<br/>8</h3>
            <h3>bright</h3>
            <h3>healthy</h3>
            <h3>sucessful</h3>
            <h3>prosperious</h3>
            <h3>peaceful</h3>
            <h3>exciting</h3>
            <h3>loving</h3>
            <h3>calm</h3>
            <h3>positive</h3>
            <h3>beautiful</h3>
            <h3>hopeful</h3>

        </div>
        
    </div>
    
</div>

<div class="content" >
    <h2>

        &emsp;var date = new Date() ; <br/>
        &emsp;date = date.getFullYear() ; <br/>
        
        &emsp;&emsp;if( date == 2018 ) { <br/>
            
            &emsp;&emsp;&emsp;newYearWish() ; <br/>
            &emsp;&emsp;} <br/>

        &emsp;&emsp;else{ <br/>
            &emsp;&emsp;&emsp;&emsp;alert ( " How are you ? " ) ; <br/> 
        &emsp;&emsp;} <br/> <br/>
        

        function newYearWish() { <br/>
            &emsp;&emsp;alert( " May all your compiler messages be informational and all your infinite loops terminate normally...May 
            you always have abundant CPU, memory and disk resources in this year for your most important tasks. May you never forgot
             to give semicolon at the end of statements.. May all your code works.. Happy new year ! " ); <br/>
        }

    </h2>
</div>

              
            
!

CSS

              
                body{
    background:#e7dec2;
}
.container{
    width:400px;
    height:400px;
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

.clock{
    position: relative;
    width:400px;
    height:400px;
    border-radius: 50%;
    background:#302b24;
    border:1em solid #dc5b21;
   /* background:url("clock1.png");*/
    background-size:cover;
    animation:visibility 1s ease 1;
    animation-fill-mode: forwards;
    animation-delay: 30s;

}

@keyframes visibility{
    0%{opacity: 1 ;}
    100%{opacity: 0 ; display: none;}
}

.center{
    width:20px;
    height:20px;
    border-radius: 50%;
    background:#dc5b21;
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}


.minute-arm{
    position: absolute;
    width:4px;
    height:35%;
    background : #dc5b21;
    bottom:50%;
    left:50% ;
    transform:translateX(-50%);
    transform-origin: bottom;
    animation:rotation 15s linear 2;
}

.hour-arm{
    position: absolute;
    width:4px;
    height:30%;
    background:#dc5b21;
    bottom:50%;
    left:50%;
    transform:translateX(-50%);
    transform-origin: bottom;
    transform:rotate(345deg)
}

@keyframes rotation{
    0%{transform:rotate(0deg)}
    100%{transform:rotate(360deg)}
}

.clock .text h3{
    font-family: 'oswald';
    text-transform: uppercase;
    position: absolute;
    color:#95907f;
}


.text h3:nth-child(1) , .text h3:nth-child(2) , .text h3:nth-child(3) , .text h3:nth-child(4) , .text h3:nth-child(5) , .text h3:nth-child(6) , 
.text h3:nth-child(7) , .text h3:nth-child(8) , .text h3:nth-child(9) , .text h3:nth-child(10) , .text h3:nth-child(11) , .text h3:nth-child(12)
{
    animation:textFade1 1s ease 0.01s;
    animation-fill-mode: forwards;
}

.text h3:nth-child(13) , .text h3:nth-child(14) , .text h3:nth-child(15) , .text h3:nth-child(16) , .text h3:nth-child(17) , .text h3:nth-child(18) , 
.text h3:nth-child(19) , .text h3:nth-child(20) , .text h3:nth-child(21) , .text h3:nth-child(22) , .text h3:nth-child(23) , .text h3:nth-child(24)
{
    animation:textFade2 1s ease 0.01s;
    animation-fill-mode: forwards;
    opacity: 0;
}





.text h3:nth-child(1) , .text h3:nth-child(13) {
    top:-5%;
    left:50%;
    transform: translateX(-50%) translateY(5%);
    font-size:1.5em;      
}

.text h3:nth-child(1){
    animation-delay: 14s;
}

.text h3:nth-child(13){
    animation-delay: 15s;
}


.text h3:nth-child(2) , .text h3:nth-child(14) {
    left:70%;                                                
    top:5%;
    transform: translateX(-70%) rotate(-55deg) translateY(-5%);
    
}

.text h3:nth-child(2){
    animation-delay: 1.2s;
}

.text h3:nth-child(14){
    animation-delay: 16.2s;
}

.text h3:nth-child(3) , .text h3:nth-child(15){
    left:89%;
    top:23%;
    transform: translateX(-89%) rotate(-25deg) translateY(-23%);  
}

.text h3:nth-child(3){
    animation-delay: 2.4s
}

.text h3:nth-child(15){
    animation-delay: 17.4s
}

.text h3:nth-child(4) , .text h3:nth-child(16){
    left:96%;
    top:41%;
    transform: translateX(-96%) rotate(0deg) translateY(-41%);
}

.text h3:nth-child(4){
    animation-delay: 3.6s
}

.text h3:nth-child(16){
    animation-delay: 18.6s
}



.text h3:nth-child(5) , .text h3:nth-child(17){
    left:90%;
    top:60%;
    transform: translateX(-90%) rotate(30deg) translateY(-60%);
    
}

.text h3:nth-child(5){
    animation-delay: 4.8s
}

.text h3:nth-child(17){
    animation-delay: 19.8s
}


.text h3:nth-child(6) , .text h3:nth-child(18){
    left:71%;
    top:79%;
    transform: translateX(-71%) rotate(60deg) translateY(-79%);
    
}

.text h3:nth-child(6){
    animation-delay: 6s
}

.text h3:nth-child(18){
    animation-delay: 21s
}


.text h3:nth-child(7) , .text h3:nth-child(19){
    left:47%;
    top:80%;
    transform: translateX(-47%) rotate(88deg) translateY(-80%);

}

.text h3:nth-child(7){
    animation-delay: 7.2s
}

.text h3:nth-child(19){
    animation-delay: 22.2s
}


.text h3:nth-child(8) , .text h3:nth-child(20){
    left:28%;
    top:78%;
    transform: translateX(-28%) rotate(-55deg) translateY(-78%);
    
}

.text h3:nth-child(8){
    animation-delay: 8.8s;
}

.text h3:nth-child(20){
    animation-delay: 23.8s;
}


.text h3:nth-child(9) , .text h3:nth-child(21){
    left:10%;
    top:61%;
    transform: translateX(-10%) rotate(-25deg) translateY(-61%);
}

.text h3:nth-child(9){
    animation-delay: 10.4s
}

.text h3:nth-child(21){
    animation-delay: 25.4s
}


.text h3:nth-child(10) , .text h3:nth-child(22){
    left:3%;
    top:41%;
    transform: translateX(-3%) rotate(0deg) translateY(-41%);
}

.text h3:nth-child(10){
    animation-delay: 11.4s;
}

.text h3:nth-child(22){
    animation-delay: 26.4s;
}


.text h3:nth-child(11) , .text h3:nth-child(23){
    left:11%;
    top:21%;
    transform: translateX(-11%) rotate(30deg) translateY(-21%);
}

.text h3:nth-child(11){
    animation-delay: 12.6s
}

.text h3:nth-child(23){
    animation-delay: 27.6s;
}




.text h3:nth-child(12) , .text h3:nth-child(24){
    left:29%;
    top:8%;
    transform: translateX(-29%) rotate(60deg) translateY(-8%);
}

.text h3:nth-child(12){
    animation-delay: 13.6s;
}
.text h3:nth-child(24){
    animation-delay: 28.6s;
}

@keyframes textFade1{
    0%{opacity: 1}
    100%{opacity: 0}
}

@keyframes textFade2{
    0%{opacity: 0;}
    100%{opacity: 1;}
}

.content h2{
    font-family: 'raleway',Arial, Helvetica, sans-serif;
    line-height:2em;
    color:#302b24;
    animation:texta 1s ease 1 ;
    animation-fill-mode: forwards;
    animation-delay: 31s;
    opacity: 0;
}

@keyframes texta{
	0%{opacity: 0}
	100%{opacity: 1}
}

              
            
!

JS

              
                
              
            
!
999px

Console