Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

Save Automatically?

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

              
                <head>
  <link href="https://fonts.googleapis.com/css?family=Aclonica" rel="stylesheet">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
 <link href="https://fonts.googleapis.com/css?family=Yellowtail" rel="stylesheet">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  </head>
<div class = "div1">
  <h1 class="animated rotateInUpLeft">Randome Quote Generator</h1>
  </div>
<div>
<p id="p1" class="animated rotateInUpRight p">“The Future Belongs To The Competent. Get Good, Get Better, Be The Best!”- Brian Tracy</p>
</div>
<div class="div2">
  <button class="btn btn-default btn-md active center-block animated rollIn">Next Quote</button>
  </div>

<div id="copy"><p>&copy; Bharath Bheemireddy<p>
  
  </div>
              
            
!

CSS

              
                
.div1 {
  padding: 20px 20px 50px 20px;
  font-family: 'Aclonica', sans-serif;
}
h1 {
  text-shadow: 2px 2px hsl(240,0%,50%) ;
  font-size : 50px;
  text-align: center;
  font-family: 'Aclonica', sans-serif; 
}
 .p{
  width: 50px 50px 50px 50px;
  padding: 50px 50px 50px 50px;
  text-align: center;
   color: white;
  font-family: 'Yellowtail', cursive;
  font-size: 25px;
  background: linear-gradient(45deg,    #f00 ,#0ff );
  box-shadow: 4px 4px 4px 2px    rgba(0,0,0,0.2);
}
.div2 {
padding: 30px 20px 20px 20px;
}
#copy {
  text-align: center;
  padding: 100px 10px 0px 10px;
  font-family: 'Yellowtail', cursive;
  text-shadow: 0px 2px rgba(0,0,0,0.2);
}
              
            
!

JS

              
                var arr = ['The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking. -Albert Einstein','Change is inevitable. Change is constant. -Benjamin Disraeli','Any change, even a change for the better, is always accompanied by drawbacks and discomforts. -Arnold Bennett','When you are finished changing, you are finished. -Benjamin Franklin','If you dont like change, you will like irrelevance even less. -General Eric Shinseki','Change before you have to. -Jack Welch','People can cry much easier than they can change. -James Baldwin','Be the change that you wish to see in the world. -Mahatma Gandhi','I alone cannot change the world, but I can cast a stone across the waters to create many ripples. -Mother Teresa','Change your thoughts and you change your world. -Norman Vincent Peale','People dont resist change. They resist being changed. -Peter Senge'];
$(document).ready(function(){
  $('button').click(function(){
           $('#p1').html(arr[Math.floor(Math.random() * arr.length)]).addClass('p');
    
});
});
              
            
!
999px

Console