Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class = "container-fluid text-center">
  <h1><strong>Random Quote Machine</strong></h1>
  <p>Quotes compiled by rakshithBellare</p>
  <div class="field">
    <p class="quote loading">loading</p>
    <p class="person"><i></i></p>
    <button class="btn btn-default butt1"><i class="fa fa-chevron-right fa-lg"></i> click to generate</button>
    <a target="_blank https://twitter.com/intent/tweet?text= "Simplicity is the ultimate sophistication by leonardo Da Vinci" id="butt2" class="btn btn-default"><i class="fa fa-twitter fa-lg"></i> click to tweet </a>
  <p class="foot">created using <a target="_blank" href = "https://www.freecodecamp.com/">freecodecamp</a></p>
  font-family : 'Poiret One';
  color: white;
  font-family : 'Tangerine';
  font-size : 35px;
  color: white;
  background-color : #000000  ;
  width : 60%;
  margin-top : 100px; 
  margin-left : auto;
  margin-right : auto;
  margin-bottom : 30px; 
  border : 4px solid #e8e5f0;
  border-radius :10px;
  padding: 10px;
  font-family : 'San Serif' ;
  font-size :20px;
  margin-bottom: 50px;
  font-size: 40px ; 
  color : white;
#butt2 button{
  margin-top : 15px;
  margin-right: 10px;
  margin-bottom: 20px;
.loading:after {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  -webkit-animation: ellipsis steps(4,end) 1800ms infinite;      
  animation: ellipsis steps(4,end) 1800ms infinite;
  content: "\2026"; /* ascii code for the ellipsis character */
  width: 0px;
@keyframes ellipsis {
  to {
    width: 20px;    
@-webkit-keyframes ellipsis {
  to {
    width: 20px;    
  font-size : 20px ; 
  function nextOne(){
    var quote = ["Simplicity is the ultimate sophistication","If you get pulled over for speeding. Tell them your spouse has diarrhoea","No act of kindness, no matter how small, is ever wasted","Think big thoughts but relish small pleasures","We are all in the gutter, but some of us are looking at the stars","Big jobs usually go to the men who prove their ability to outgrow small ones","Few are those who see with their own eyes and feel with their own hearts","Inherited poverty is a pride , Bequeathing poverty is a crime","Let us remember: One book, one pen, one child, and one teacher can change the world","India may be a land of over a 100 problems, but it is also a place for a billion solutions"];
    var person = ["-Leonardo da Vinci","-Phil Dunphy", "-Aesop","-H. Jackson Brown, Jr.","-Oscar Wilde","-Theodore Roosevelt","-Albert Einstein","-Deekshith Bellare","-Malala Yousafzai","-Kailash Satyarthi"];
    var colors = ["#081e2b","#180f00","833B0E","#2a3f4f","#232d33","#1a3440","#3c4d85","#394866","#294d67","#2b2424"]
    var randomNum = Math.floor((Math.random() * quote.length));
    var randomNumber = Math.floor((Math.random() * 9));
    var randomQuote = quote[randomNum];
    var randomAuth = person[randomNum];
    var randomColor1 = colors[randomNum];
    var randomColor2 = colors[randomNumber];
   $("body").css("background-color", randomColor1);
   $(".field").css("background-color", randomColor2);
var presQuote = ' https://twitter.com/intent/tweet?text= '+ randomQuote + randomAuth + ' @fluffystub @freecodecamp' ;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.