123

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="content">
  <div class="intro">
    <h2>Senses Around</h2>
    <h1>Senses</h1>
    <p>
      Senses Around is Taiwanese Mandopop artist Yoga Lin's second Mandarin studio album. It was released 30 October 2009 by HIM International Music. A second edition Senses Around was released on 18 December 2009 with a bonus DVD containing live footage from Lin's Yoga's Trick album release concert in Taipei.
    </p>
    <button><img src="https://cdn.onlinewebfonts.com/svg/img_76971.png" alt=""></button>
  </div>
  <div class="image"></div>
  <nav>
  <a href="#">About</a>
  <a href="#">Work</a>
  <a href="#">Blog</a>
  <a href="#">Contact</a>
</nav>
</div>
<div class="circle circle01">
  <div class="circle orbiting-circle01"></div>
</div>

<div class="circle orbitPathCentered border-blue orbitPath01-border"></div>
<div class="circle orbitPathCentered orbitPath01"></div>

<div class="circle orbitPathCentered border-blue orbitPath02-border"></div>
<div class="circle orbitPathCentered orbitPath02"></div>
<div class="circle circle02"></div>

<div class="circle border-orange circle03"></div>
<div class="circle circle04"></div>
            
          
!
            
              *{
  margin: 0;
}
html, body{
  z-index: 0;
  position: absolute;
  margin: 0;
  width: 100%;
  height: 100vh;
  background: #1E1C41;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
}
.content{
  grid-column: 3/span 8;
  position: relative;
  z-index: 0;   /*fix!*/
/*   min-width: 1fr; */
  min-width: 60%;
  margin: 0 10%;
  height: 60vh;
/*   max-height: 500px; */
  background: white;
  
  /* grid layout*/
  display: grid;
  grid-template-columns: 5fr 3fr;
  grid-template-rows: 3fr 1fr;
}
h1,h2{
  text-transform: uppercase;
  font-family: 'PT Sans', sans-serif;
  letter-spacing: .05em;
}
h1{
  font-size: 6vw;
  -webkit-text-stroke: 2px black;
}
h2{
  font-size: 2vw;
  color: #FC2B78;
}
p{
  color: #A6A6A6;
  font-style: italic;
  font-size: .8em;
  line-height: 1.5em;
}

.intro{
  padding: 5em 3em 2em 3em;
  background: white;
  grid-column: 0;
}
button{
  display: block;
  margin-top: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  background-color: #F42B71;
  transition: all .3s ease;
}
button:hover{
  cursor: pointer;
  transform: scaleX(1.05) scaleY(1.05);
  box-shadow: 0 2px 3px 1px rgba(0,0,0,.1);
}
button:focus{
  outline: none;
}
button img:first-child{
  width: 80%;
  filter: invert(100%);
}
.image{
  background: url('https://images.unsplash.com/photo-1523329748863-dae9a2ede2e5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2134&q=80');
  background-position: center;
  background-size: cover;
  grid-row: span 2;
}
nav{
  background-color: #F5F5F7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-right: 30%;
}
nav a{
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .05em;
  color: 	#707070;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'PT Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}
nav a:hover{
  
}
.circle{
  position: absolute;
  border-radius: 50%;
}
.orbitPathCentered{
  display: grid;
  align-items: center;
  justify-items: center;
}
/******************************************************/
/* circle01; top right pink */
.circle01{
  right: 8%;
  top: 3vh;
  width: 18vw;
  padding-top: 18vw;
  transform-origin: 40% 50%;
  background: linear-gradient(#F439D6, #F42B71);  /*pink to dark pink*/
  animation: rotate 50s linear infinite;
}
.orbiting-circle01{
  width: 3.5vw;
  padding-top: 3.5vw;
  margin-top: 4vw;
  background: linear-gradient(#F536D0, #AB02F3);  /*pink to purple*/
}
/******************************************************/
.border-blue{
    border: 1px solid #4FE3FF; 
    z-index: -1;  /* stick this behind the content area */
}
.orbitPath01-border{
  top: 70vh;
  left: 45%;
  width: 24vw;
  height: 24vw;
  animation: rotatePath 50s linear infinite;
}
.orbitPath01{
  top: 70vh;
  left: 45%;
  z-index: 10;
  width: 24vw;
  height: 24vw;
  animation: rotatePath 50s linear infinite;
}
.orbitPath01:before{
  position: absolute;
  border-radius: 50%;
  z-index: 10;
  content: "";
  width: 5vw;
  padding-top: 5vw;
  left: 0;
  transform: translateX(-50%);
  background: linear-gradient(#F2E91B, #B4FF2F);  /*light green to dark green*/
}

.orbitPath02-border{
  top: calc(70vh + 12vw);
  left: calc(45% + 12vw);
  width: 18vw;
  height: 18vw;
  animation: rotatePathInside 30s linear infinite;
}
.orbitPath02{
  top: calc(70vh + 12vw);
  left: calc(45% + 12vw);
  z-index: 10;
  width: 18vw;
  height: 18vw;
  animation: rotatePathInside 10s linear infinite;
}
.orbitPath02:before{
  position: absolute;
  border-radius: 50%;
  z-index: 10;
  content: "";
  width: 2vw;
  padding-top: 2vw;
  bottom: 0;
  transform: translateY(50%);
  background: linear-gradient(#4EE0F8, #3BA2FE);  /*light blue to dark blue*/
}
.circle02{
  top: calc(70vh + 12vw);
  left: calc(45% + 12vw);
  z-index: 10;
  width: 12vw;
  padding-top: 12vw;
  background: linear-gradient(#4FE3FF, #9117FF);  /*light blue to purple*/
  
  transform-origin: 48% 48%;
  animation: rotatePathInside 30s linear infinite;
}
/******************************************************/
/* circle03 */
.border-orange{
  border: 1px solid #FF6D0F;
  z-index: -1;  /* stick this behind the content area */
}
.circle03{
  top: 5%;
  left: 30%;
  width: 32vw;
  height: 32vw;
  transform-origin: 46% 50%;
  animation: rotateBob 50s linear infinite;
}
.circle03:after{
  position: absolute;
  border-radius: 50%;
  z-index: 10;
  content: "";
  left: calc(50% - 2.5vw);
  top: calc(0% - 2.5vw);
  width: 5vw;
  padding-top: 5vw;
/*   transform-origin: 40% 50%; */
  background: linear-gradient(#FF6D0F, #FF2300);  /*light orange to dark orange*/
}
/******************************************************/
/* circle04 */
.circle04{
  right: 90%;
  top: 60%;
  width: 5vw;
  padding-top: 5vw;
  transform-origin: 40% 50%;
  background: linear-gradient(#FDE213, #EF9004);  /*light yellow to dark yellow*/
  animation: rotateBob 12s linear infinite;
}
@keyframes rotate{
  0%{
    transform: rotateZ(0deg);
  }
  100%{
    transform: rotateZ(360deg);
  }
}
@keyframes rotatePath{
  0%{
    transform: rotateZ(0deg);
  }
  100%{
    transform: rotateZ(360deg);
  }
}
@keyframes rotatePathInside{
  0%{
    transform: translateX(-50%) translateY(-50%) rotateZ(0deg);
  }
  100%{
    transform: translateX(-50%) translateY(-50%) rotateZ(360deg);
  }
}
@keyframes rotateBob{
  0%{
    transform: translateY(0) rotateZ(0deg);
  }
  50%{
    transform: translateY(-3vh) rotateZ(180deg);
  }
  100%{
    transform: translateY(0) rotateZ(360deg);
  }
}
@media only screen and (max-width: 600px){
  .content{
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 5fr 30px 6fr;

    min-height: 80vh;
    max-height: 100vh;
  }
  .content .intro{
    grid-row: 3;
  }
  .content .image{
    grid-row: 1; 
    background-position: 0% 20%;
  }
  .content nav{
    grid-row: 2;
  }
  body{
    grid-auto-rows: 1fr;
    align-items: start;
  }
}
            
          
!
            
              // This pen is based on a design created by Xiu Yuan and can be seen here: https://dribbble.com/shots/2413441-Senses-Around. Don't forget to show her some love!
/*
Palette stuff
pink to dark pink
  #F439D6
  #F42B71
pink to purple
  #F536D0
  #AB02F3
light green to dark green
  #F2E91B
  #B4FF2F
light blue to dark blue
  #4EE0F8
  #3BA2FE
light blue to purple
  #4FE3FF
  #9117FF
light orange to dark orange
  #FF6D0F
  #FF2300
light yellow to dark yellow
  #FDE213
  #EF9004
*/
            
          
!
999px
🕑 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.

Console