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

              
                <link href="https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300&family=Open+Sans:wght@300&display=swap" rel="stylesheet">

<!DOCTYPE html>
<html>
  <head>
    <title>The Secret Life of Skyscrapers</title>
<!--This is the information read by the internet on the metadata-->
  </head>
  <body>
    <header class="Introduction"> 
      <h1> The Secret Life of Skyscrapers </br> New York City
      </h1> </br>
    <h3> With the world under quarantine, and world travel at a standstill, it is difficult to appreciate the beauty of urban environments from within the confines of our homes and communities. This project aims to help students and urban enthusiasts explore the art of tall buildings and share an appreciation for great building design. Buildings reflect trends in the economy and culture, as well as our technological advancements and changing social values. As an interactive timeline, I hope it shows us where we come from and where we are going - and how to elevate the conversation about urban environments. How we think of architecture today determines how we live tomorrow.
      </h3>
</br>


    </header>

    <section class="Building_Rows">
      <div class="buildingcard">
      <div class="tooltip">
         <img id="building-image" src="https://www.skyscrapercenter.com/img/building-outlines/VIA57WEST.png" alt="Via57West" height="300px">
        <span class="tooltiptext">Via 57 West</span>
        </div>
        <hr class="timeline">
          <button class="plusbutton">+</button>
        <p class="title">Via 57 West</p> <hr>
        <p class="year">2016</p> <hr>
        <p class="architect">Bjarke Ingels Group</p> <hr>
        <p class="developer">The Durst Organization</p>
      </div>

      <div class="buildingcard">
      <div class="tooltip">
         <img id="building-image" src="https://www.skyscrapercenter.com/img/building-outlines/AmericanCopperBuildingsWest.png" alt="AmericanCopperBuilding" height="300px">
        <span class="tooltiptext">American Copper Building</span>
        </div>
        <hr class="timeline">
          <button id="plusbutton" class="tooltip">+
            <span class="building_photo"><img id="photo" src="https://cdn.vox-cdn.com/thumbor/OQzhIN2Earu32n6WoAbI-mSWmqI=/0x0:2000x1333/1400x1400/filters:focal(840x507:1160x827):format(jpeg)/cdn.vox-cdn.com/uploads/chorus_image/image/55348077/170508_10_27_41_5DS29248.0.jpg" alt="AmericanCopperBuilding" height="300px" width:"200px">
            </span>
          </button>
        <p class="title">American Copper Building</p> <hr>
        <p class="year">2017</p> <hr>
        <p class-"architect">SHOP Architects</p> <hr>
        <p class="developer">JDS Group</p> 
      </div>
      
         
</section>
    
    
    <footer>
    </footer>
  </body>
              
            
!

CSS

              
                body {
  font-family: 'Open Sans', sans-serif;
  background-color: #e9e9e9;
}

.Introduction {
  padding: 5%;
  margin: auto;
  width: 75%;
}

.Building_Rows {
  margin: relative;
  top: 50%;
  bottom: 50%;
  width: 100%;
  display: grid;
  place-self: center;
  justify-items: center;
  position: center;
  grid-template-columns: 600px 600px;
  grid-template-rows: 50%;
  text-align: center;
  }

.buildingcard {
  margin: auto;
  justify-items: center;
  place-self: center;
  width: 100%;
}

#building-image:hover {
  -webkit-filter: invert(1);
  filter: invert(1);
  transition: filter 0.25s;
}

.tooltip {
  position: relative;
  display: inline-block;
  place-self: center;
  justify-items: center;
}  

.tooltip .building_photo {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  bottom: 25%;
  left: -100px;
  margin-left: -100px;
}


.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 50%;
  background-color: grey;
  color: white;
  text-align: center;
  padding: 10px 10px;
  z-index: 1;
}

.tooltip:hover .building_photo {
  visibility: visible;
  width: 400px;
  top: 25%;
}

.tooltip:hover .tooltiptext{
  visibility: visible;
}
  
hr {
  width: 90%;
  text-align: center;
  height: 1px;
  background-color: grey;
  border-width: 0;
  color: grey;
}

.timeline {
  height: 2px;
  width: 100%;
  background-color: black;
  color: black;
  border-width: 0;
}

.title {
  font-weight: bold;
  padding: 5px 2px 2px 2px;
}

button{
  display: inline-block;
  background-color: rgba(180,180,180,1);
  width: 30px;
  height: 30px;
  margin: auto;
  border-radius: 50%;
  place-self: center;
  font-size: 150%;
  padding: 1px 5px 5px 5px;
  color: white;
  text-align: center;
  border: none;
  outline: none;
}

button:hover {
  background-color: rgba(100,100,100,0.9);
}

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

.building_photo {
  display: inline-block;
  position: center;
  justify-self: center;
  width: 100%;
  background-color: rgba(255,255,255,0.5);
  margin: auto;
  place-self: center;
  justify-items: center;
  padding: 5%;
  height: 300px;
}
              
            
!

JS

              
                function invert() {
  document.getElementbyId("building-image").style.filter="invert(100%)";
}
              
            
!
999px

Console