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

              
                <div id="demo">
 <div id="main">
  <h1>Creative</h1>
  <h2>Process</h2>
  <p>Learn how to find inspiration in the things you love. </p>
   <button class="myButton">READ MORE</button>
  </div>
  <div id="images">
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="180px" height="180px" viewBox="0 0 238.54 222.9" style="enable-background:new 0 0 238.54 222.9;"
	 xml:space="preserve">
  <style type="text/css">
    .st0{fill:#ea3457}.st3{fill:#fff}.st5{fill:#90c8ec}.st6{fill:#333}.st8{fill:#0aabe0}.st9{fill:#602f75}.st11{fill:#3a2c51}
  </style>
  <defs>
</defs>
  <g id="items">
  <g id="book">
  <path class="st0" d="M181 169.8s-12.2-14.1-27.3-20.2l20.4-29.2s19.8 11.6 23.4 21.2L181 169.8z"/>
  <path class="st0" d="M181 169.8s18.2 3.8 30.9 14.1l15.6-32s-19.7-11.7-29.9-10.2L181 169.8z"/>
  <path d="M197.5 141.8l-16.5 28s-7.7-15.6-26.4-25.2l20.7-30.6s22.5 11.5 22.2 27.8z" fill="#d6d6d6"/>
  <path d="M197.5 141.8l-16.5 28s17.4-.8 34.9 10.8l16.8-32.9c-.1.1-21-14-35.2-5.9z" fill="#ccc"/>
  <path class="st3" d="M200.2 137.2L181 169.8s-3.7-18.7-20.1-26.8l21.8-33.2s19.8 9.6 17.5 27.4z"/>
  <path d="M200.2 137.2L181 169.8s18.1-5.8 33.2 4.6l18.5-35.2c0 .1-18.1-12.6-32.5-2z" fill="#f0f0f0"/>
  </g>
  <g id="atom">
  <path class="st5" d="M127.9 186.5c-1.4 1.5-3.4 2.4-5.6 2.4-4.2 0-7.7-3.4-7.7-7.7 0-4.2 3.4-7.7 7.7-7.7s7.7 3.4 7.7 7.7c0 .7-.1 1.3-.2 1.9"/>
  <path class="st6" d="M158.9 181.3c0-4.2-3.4-8.2-9.6-11.2 2.3-6.5 1.9-11.7-1.1-14.7-1.7-1.7-4.1-2.6-7.1-2.6-2.3 0-4.9.5-7.6 1.5-3-6.2-6.9-9.6-11.2-9.6-4.2 0-8.2 3.4-11.2 9.6-2.7-1-5.3-1.5-7.6-1.5-3 0-5.4.9-7.1 2.6-3 3-3.4 8.2-1.1 14.7-6.2 3-9.6 6.9-9.6 11.2 0 4.2 3.4 8.2 9.6 11.2-2.3 6.5-1.9 11.7 1.1 14.7 1.7 1.7 4.1 2.6 7.1 2.6 2.3 0 4.9-.5 7.6-1.5 3 6.2 6.9 9.6 11.2 9.6 4.2 0 8.2-3.4 11.2-9.6 2.7 1 5.3 1.5 7.6 1.5 3 0 5.4-.9 7.1-2.6 3-3 3.4-8.2 1.1-14.7 6.2-3 9.6-6.9 9.6-11.2zm-22.5 0c0 2-.1 3.9-.2 5.8-1.2 1.4-2.5 2.8-3.9 4.2s-2.8 2.7-4.2 3.9c-1.9.1-3.8.2-5.8.2s-3.9-.1-5.8-.2c-1.4-1.2-2.8-2.5-4.2-3.9-1.4-1.4-2.7-2.8-3.9-4.2-.1-1.9-.2-3.8-.2-5.8s.1-3.9.2-5.8c1.2-1.4 2.5-2.8 3.9-4.2s2.8-2.7 4.2-3.9c1.9-.1 3.8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.3 5.1 4.6 5.6.3.1.6.1.9.1 1.4 0 2.8-.7 3.7-2.1.6-.9.7-2.5 1-4.7.3-3.4.8-8 3.2-10.4 1.7-1.7 3.2-4 4.4-6.8.2 0 .2-.1.2-.2z"/>
    <path class="st8" d="M65.2 98.9c0-.1-.1-.2-.1-.3-.8-1.4-1.8-2.3-3-2.9-.9-.5-1.8-1-2.6-1.6-2.4-1.5-4.8-3.1-7.2-1.3-1.7 1.3-1.5 3.1-1.3 4.6s.3 2.4-.7 3.1c-2.6 1.8-4.8 4.9-3.6 7.6 0 .1.1.1.1.1 6.5-.7 12.6-3.6 17.3-8.3.4-.2.8-.6 1.1-1z"/>
  </g>
  <g id="telescope">
    <path class="st9" d="M163.2 75.3c-.5.2-1 .1-1.4-.4l-7.5-9.3c-.4-.5-.3-1.3.2-1.7.5-.4 1.3-.3 1.7.2l7.5 9.3c.4.5.3 1.3-.2 1.7-.1.1-.2.2-.3.2z"/>
    <path class="st0" d="M189.3 38.5L207.1 23l7.5 9.2-53.4 40.1-4.5-5.5 31.7-27.5"/>
    <path class="st9" d="M161.7 73.5c-.5.2-1 .1-1.4-.4l-4.5-5.6c-.4-.5-.3-1.2.1-1.6L188.1 38c.5-.4-.2.8.3 1.3.4.5 2-.2 1.5.3l-31.6 27.3 3 3.8L212.9 32l-5.9-7.3-16.9 14.7c-.5.4-1.2.4-1.7-.1-.4-.5-.4-1.2.1-1.7l17.8-15.5c.2-.2.6-.3.9-.3.3 0 .6.2.8.4l7.5 9.3c.2.3.3.6.3.9 0 .3-.2.6-.5.8l-53.4 40.1c0 .1-.1.1-.2.2z"/>
    <path class="st9" d="M217.3 36.1c-.5.2-1 .1-1.4-.4l-12-14.8c-.4-.5-.3-1.3.2-1.7.5-.4 1.3-.3 1.7.2l12 14.8c.4.5.3 1.3-.2 1.7-.1.1-.2.2-.3.2z"/>
    <path class="st9" d="M181.1 101.2c-.1.1-.3.1-.4.1-.7 0-1.2-.5-1.2-1.2l.2-42.2c0-.7.5-1.2 1.2-1.2s1.2.5 1.2 1.2l-.2 42.2c-.1.5-.4.9-.8 1.1z"/>
    <path class="st9" d="M209.9 90c-.4.2-1 .1-1.3-.3l-28.7-31c-.4-.5-.4-1.2.1-1.7.5-.4 1.2-.4 1.7.1l28.7 31c.4.5.4 1.2-.1 1.7-.1 0-.2.1-.4.2z"/>
  </g>
  <g id="code">
    <path class="st6" d="M87.6 87.2l-5.4 35.7c-.4 2.5 1.3 4.8 3.8 5.1l53.5 8c2.5.4 4.8-1.3 5.1-3.8l5.4-35.7-62.4-9.3z"/>
    <path d="M86.7 123.5l5.4-35.7 53.5 8-5.4 35.7-53.5-8z" fill="#fafafa"/>
    <path class="st6" d="M147.5 82.6l-53.5-8c-2.5-.4-4.8 1.3-5.1 3.8l-1.3 8.9 62.4 9.4 1.3-8.9c.4-2.6-1.3-4.9-3.8-5.2z"/>
    <path class="st11" d="M129 100.4l-3.6 2.7 6.7 9-9.1 6.7 2.7 3.6 12.7-9.3-9.4-12.7z"/>
    <path class="st11" d="M106.5 97l-12.7 9.4 9.4 12.7 3.6-2.7-6.7-9.1 9.1-6.7-2.7-3.6z"/>
    <path class="st11" d="M107.2 120.2l13.9-23.1 3.9 2.3-13.9 23.1-3.9-2.3z"/>
  </g>
  <g id="paint">
    <path class="st3" d="M128.9 43.6c2.7-8.3 11.3-13.1 19.6-11.1-1.1-11.3-8.8-21.5-20.3-25.2-15.5-5-32.1 3.5-37.1 19s3.5 32.1 19 37.1c8.1 2.6 16.5 1.5 23.4-2.3-4.6-4.3-6.7-11.1-4.6-17.5zm-10.8 14.1c-2.1-.7-3.2-2.9-2.5-4.9.7-2.1 2.9-3.2 4.9-2.5s3.2 2.9 2.5 4.9c-.6 2-2.8 3.2-4.9 2.5z"/>
    <path class="st11" d="M109.8 64.3C93.8 59.2 85 41.9 90.2 26s22.4-24.8 38.3-19.6c11.6 3.7 19.8 14 21 26.1 0 .3-.1.6-.3.8s-.6.3-.9.2c-7.9-1.8-16 2.8-18.5 10.5-1.9 5.8-.2 12.3 4.4 16.4.2.2.3.5.3.8s-.2.6-.5.7c-7.4 4.1-16.2 5-24.2 2.4zm18.1-56.1C113 3.4 96.9 11.6 92 26.6s3.4 31.1 18.4 35.9c7.1 2.3 14.8 1.7 21.5-1.6-4.4-4.7-5.9-11.4-3.9-17.5 2.7-8.2 11-13.3 19.4-12.1-1.6-10.8-9.1-19.8-19.5-23.1zm-10.1 50.4c-2.6-.8-4-3.6-3.2-6.2.8-2.6 3.6-4 6.2-3.2s4 3.6 3.2 6.2c-.8 2.7-3.6 4.1-6.2 3.2zm2.5-7.4c-1.5-.5-3.2.4-3.7 1.9s.4 3.2 1.9 3.7 3.2-.4 3.7-1.9c.5-1.6-.4-3.2-1.9-3.7z"/>
    <circle cx="131.8" cy="21.8" r="5.9" fill="#eaeaea"/>
    <path class="st11" d="M129.7 28.4c-3.6-1.2-5.6-5.1-4.4-8.7s5-5.6 8.7-4.4c3.6 1.2 5.6 5.1 4.4 8.7s-5.1 5.5-8.7 4.4zm3.6-11.2c-2.6-.8-5.4.6-6.2 3.2s.6 5.4 3.2 6.2c2.6.8 5.4-.6 6.2-3.2s-.6-5.4-3.2-6.2z"/>
    <circle class="st5" cx="115" cy="19.5" r="5.9"/>
    <circle class="st0" cx="102" cy="30.8" r="5.9"/>
    <path class="st11" d="M99.9 37.4c-3.6-1.2-5.6-5.1-4.4-8.7s5-5.6 8.7-4.4c3.6 1.2 5.6 5.1 4.4 8.7s-5.1 5.5-8.7 4.4zm3.7-11.3c-2.6-.8-5.4.6-6.2 3.2s.6 5.4 3.2 6.2 5.4-.6 6.2-3.2-.7-5.3-3.2-6.2z"/>
    <circle cx="106.6" cy="48.8" r="5.9" fill="#ffe600"/>
  </g>
  <g id="cam">
    <path d="M49.5 145.1c6.3 1.6 10 8 8.4 14.3s-8 10-14.3 8.4-10-8-8.4-14.3 8-10 14.3-8.4z" fill="#d4e1f4"/>
    <path class="st0" d="M76.5 149.2l-8.2 31.3c-.2.7-.9 1.1-1.6.9l-50.1-13.1c-.7-.2-1.1-.9-.9-1.6l8.2-31.3c.2-.7.9-1.1 1.6-.9l12.5 3.3 4.9-6.8 19.4 5.1.9 8.3 12.5 3.3c.6.1 1 .8.8 1.5zm-18.7 10.2c1.6-6.3-2.1-12.7-8.4-14.3s-12.7 2.1-14.3 8.4 2.1 12.7 8.4 14.3 12.7-2.1 14.3-8.4z"/>
  </g>
  </g>
</svg>
</div>
</div>
              
            
!

CSS

              
                body {
  font-family: 'Kanit', sans-serif;
  background:#252525;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
#demo {
  visibility: hidden;
  position:relative;
  width:650px;
  height:380px;
  border:1px solid #333;
  background:url(https://res.cloudinary.com/highflyer910/image/upload/v1574519914/blablabla_oth1dl.png);
}

#main {
  position:absolute;
  width:250px;
  top:80px;
  left:50px;
}

h1{
  font-size:50px;
  font-weight:500;
}

h2{
  font-size:40px;
  font-weight:200;
  margin-top:-55px;
}

p {
  font-weight:200;
  margin-top:-20px;
  font-size:16px;
  line-height:20px;
}

#images {
  position:absolute;
  left:400px;
  top:12px;
}

.myButton {
  margin-top:5px;
	-webkit-box-shadow:inset 0px 1px 0px 0px #61138E;
	box-shadow:inset 0px 1px 0px 0px #61138E;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #61138E), color-stop(1, #26006A));
	
	background:linear-gradient(to bottom, #61138E 5%, #26006A 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#61138E', endColorstr='#26006A',GradientType=0);
	background-color:#61138E;
	-moz-border-radius:17px;
	-webkit-border-radius:17px;
	border-radius:17px;
	border:1px solid #26006A;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:15px;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:0px 1px 0px #26006A;
}
.myButton:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #26006A), color-stop(1, #61138E));
	background:-moz-linear-gradient(top, #26006A 5%, #61138E 100%);
	background:-webkit-linear-gradient(top, #26006A 5%, #61138E 100%);
	background:-o-linear-gradient(top,#26006A 5%, #61138E 100%);
	background:-ms-linear-gradient(top, #26006A 5%, #61138E 100%);
	background:linear-gradient(to bottom, #26006A 5%, #61138E 100%);
}

.myButton:active {
	position:relative;
	
}
              
            
!

JS

              
                var tl = gsap.timeline({defaults:{opacity:0, ease:"back"}});
function init() {
tl.from("#demo",{ease:"linear", autoAlpha:0})
  .from("h1", {x:80, duration:1})
  .from("h2", {x:-80, duration:1}, "<")
  .from("p", {y:30}, "-=0.2")
  .from("button", {y:50}, "-=0.4")
  .from("#items > g", {scale:0, transformOrigin: "50% 50%", stagger:0.1})
}

window.addEventListener("load", function(event){
  init();
})

//GSDevTools.create();




              
            
!
999px

Console