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 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

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

              
                <!--fontstyle import-->
<link href="https://fonts.googleapis.com/css2?family=Merriweather:wght@900&family=Playfair+Display:wght@600&family=Ultra&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&family=Quicksand:wght@400;515&display=swap" rel="stylesheet">


<!DOCTYPE html>
<html>
  <head>
    <title>Vintage Record Player</title>
  <!--This is the information read by the internet on the metadata-->
  </head>
  <body>
    <header>
      <!--Title Section-->
      <h1 id="darkmode">THE RECORD ROOM </h1>
      <button onclick="chBackcolor('rgba(20,20,20,1)','rgba(50,50,50,1)');">Dark</button>
      <button onclick="chBackcolor('rgba(240,240,240,1)', 'rgba(170,170,170,0.5)');">Light</button>
    </header>
    <section class="AlbumGrid">
      <!--Grid of Albums-->

      <!--1980's-->
      <!--New Order-->
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/61IB2kihJsL._SL1425_.jpg" alt="NewOrderSinglesAlbum" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/2ODAEaYlqS88SU4ZZu1bI6" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      

      <!--The Smiths-->      
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://www.rhino.com/sites/rhino.com/files/styles/article_image/public/smiths.jpeg?itok=wLso7wFq" alt="TheSmithsCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/6cI1XoZsOhkyrCwtuI70CN" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://musiczone.ie/wp-content/uploads/2014/04/The-Smiths-%E2%80%93-The-Queen-is-Dead.jpg" alt="TheQueenisDeadCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/5Y0p2XCgRRIjna91aQE8q7" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>

      <!--The Cure-->
      <div class="album">
          <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://img.discogs.com/_qPGpQyPYcQIsE3v28acRgMhIpE=/fit-in/600x593/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-2557486-1296900279.jpeg.jpg" alt="KissMeKissMeKissMeCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/7qtRliQvQBu5v6LTi3gNDD" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
      
      <!--1990's-->
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://prodimage.images-bn.com/pimages/0731451326127_p0_v1_s550x406.jpg" alt="WishCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/3x1CmNdXWU0DzpTZXFFRZu" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
              
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/0/0f/Radiohead.pablohoney.albumart.jpg" alt="PabloHoneyCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/6400dnyeDyD2mIFHfkwHXN" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>

      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://www.nme.com/wp-content/uploads/2016/10/48OasisWhatsTheStory201010.jpg" alt="UrbanHymnsCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/7EW77iyGMou046Z44pOrIk" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
        
  <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/a/a1/Radiohead.okcomputer.albumart.jpg" alt="OkComputerCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/7dxKtc08dYeRVHt3p9CZJn" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
      
      
      <div class="album">
        <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/71UpxJQy0xL._SL1418_.jpg" alt="UrbanHymnsCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/52AeC4gwbxDfFlLHgK1ByD" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>   

       <!--2000's-->
 
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://static.stereogum.com/uploads/2020/04/lost-souls-doves-cover-1585759775.jpg" alt="LostSoulsCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/33nyNThvBKPzS4NGdnWACf" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
     
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/5/57/Coldplayparachutesalbumcover.jpg" alt="ParachutesCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/6ZG5lRT77aJ3btmArcykra" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/61CBB6RDRJL._SL1083_.jpg" alt="HopesandFearsCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/0qsT8HLvlWaSWIq8Rc95BI" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
     
    <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://cdn1.theyoungfolks.com/wp-content/uploads/2017/08/24180419/A-Rush-of-Blood-to-the-Head-770x770.jpg" alt="ARushofBloodTotheHeadCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/0RHX9XECH8IVI3LNgWDpmQ" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
    <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/51qiAceMQ0L.jpg" alt="SomeCitiesCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/1b8wM8rrNJzdxHykdygy9V" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
 
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://static.stereogum.com/uploads/2018/06/viva-la-vida-1528839281-640x640.jpg" alt="VivalaVidaCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/1CEODgTmTwLyabvwd7HBty" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
 
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/7/7d/Boxerrebellionunion.PNG" alt="UnionCover" width="300" height="300">
            </div>
            <div class="flip-card-back"> <iframe src="https://open.spotify.com/embed/album/7FhYez9lKblYnyqzaK2Lid" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>           
 
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/b/b8/I_Had_the_Blues_But_I_Shook_Them_Loose_%28Front_Cover%29.png" alt="WeHadTheBluesButWeShookThemLooseCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/4X0bhkSBOfcnOPyfG5Ef6a" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>         

            
    <!--2010's-->  
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/b/ba/Bombay_bicycyle_club_a_different_kind_of_fix.jpg" alt="ADifferentKindofFixCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/4W6ztwnEbK92Arl8kI9c9N" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>

       <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/1/19/Keane_Strangeland.jpg" alt="StrangelandCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/3nwyEcUG2j9CXV7qY1BhVr" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/7/78/Public_Service_Broadcasting_-_Inform-Educate-Entertain_%28cover%29.jpg" alt="Inform-Educate-EntertainCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/1aSU7tVnGuKquY8yKCw1jm" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/8/8a/BombayBicycleClubSongalbumcover.jpg" alt="SoLongSeeYouTomorrowCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/5oKWoolIuoWMG6AORvA9hL" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
      <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/81Y8SVzQGzL._SL1400_.jpg" alt="TheRaceforSpaceCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/65KwtzkJXw7oT819NFWmEP" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>
      
    <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://images-na.ssl-images-amazon.com/images/I/81Or6X4cSBL._SL1200_.jpg" alt="EveryValleyCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/3jS2Xu9OqOicKjAKnyjRZL" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>      
    
       <div class="album">
         <div class="flip-card">
          <div class ="flip-card-inner">
             <div class="flip-card-front">
          <img src="https://upload.wikimedia.org/wikipedia/en/9/97/Bombay_Bicycle_Club_-_Everything_Else_Has_Gone_Wrong.png" alt="EverythingHasGoneWrongCover" width="300" height="300">
            </div>
            <div class="flip-card-back"><iframe src="https://open.spotify.com/embed/album/11yHtE6IzOk6elh9cJzldJ" width="300" height="300" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>
        </div>  
        </div>
      </div>    
      
    </section>
    <footer>
    <!--Title Section-->
      <h1>NINETEEN EIGHTIES TO TWENTY TENS</h1>
    </footer>
    
  </body>
</html>
              
            
!

CSS

              
                header, footer {
  font-family: 'Playfair Display', sans-serif;
  position: relative;
  text-align: center;
  height: 20%;
  margin: auto;
  font-weight:light;
  padding: 3%;
}


h1 {
  font-size: 350%;
  color: rgba(170,170,170,0.5);
}


body {
  background-color: rgba(240,240,240,1);
  overflow: hidden;
}

button {
  display:inline-block;
  padding: 5px 15px;
  font-size: 20px;
  outline: none;
  font-family: 'Open Sans', serif;
  background-color: rgba(170,170,170,0.2);
  color:rgba(100,100,100,1);
  border: none;
}

button:hover {background-color: rgba(170,170,170,0.4)}

button:active {
  background-color: rgba(170,170,170,0.5);
  transform:translateY(1px);
}

.AlbumGrid {
  margin: fixed;
  top: 50%;
  bottom: 50%;
  width: 100%;
  height: 325px;
  display:grid;
  grid-template-columns: repeat(25, 300px);
  overflow-x: scroll;
  justify-content:start;
  grid-gap: 5px;
}

::-webkit-scrollbar {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: dimgrey;
  width: 5px;
}





.flipcard {
  background-color:black;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  border-style: solid;
  position: relative;
}

.flip-card-inner{
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  background-color: black;
  color: white;
  transform: rotateY(180deg);
}



              
            
!

JS

              
                function chBackcolor(color1,color2){
  document.body.style.background = color1;
  var divs = document.getElementsByTagName("h1");
  
  for (var i=0; i<divs.length; i++){
    var div = divs[i];
    div.style.color = color2;
   
  }
    
    
  }

              
            
!
999px

Console