Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


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.


                <div style="height: 200px; width:100%; background-color: azure;">Nothing here</div>

<div class="hero-image"><img src="" width="2000" height="1000" class="responsive"/></div>
	 <h1 style="padding: 33px">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent cursus enim hendrerit ligula feugiat, vitae lacinia elit feugiat. Fusce at dignissim velit. Fusce porttitor leo nisi, sit amet mattis risus faucibus ut. Nullam egestas venenatis quam nec efficitur. Mauris dignissim egestas porttitor. Integer dictum congue tortor, sed dictum nisl interdum at. Quisque pellentesque vitae est vitae pellentesque. Nam egestas nisi non libero suscipit egestas.
<div style="height: 200px; width:100%; background-color: azure;">Nothing here</div>


                @import url(',400&display=swap');

body { 
  font-family: "Signika Negative", sans-serif; 
  font-weight: 300;
  margin: 0;
  padding: 0 20px;
  height: 300vh;

.hero-image {
  width: 30vw;
  opacity: 0

h1 {
  opacity: 0

.responsive {
  width: 100%;
  height: auto;



gsap.set(".hero-image, h1", {
  opacity: 1

let tl = gsap.timeline({
  scrollTrigger: {
    trigger: ".hero-image",
    start: "100px 100px",
    /*end: "+=500", */
    end: "bottom 500px",
    pinSpacing: false,
    scrub: 1,
    pin: true,
    markers: true

    /*toggleActions: "restart pause reverse pause"*/
tl.from(".hero-image", {
  x: "-33px",
  transformOrigin: "top left",
  scale: 3,
  ease: "none"
.from('h1', {
  yPercent: 100,
  ease: "none"
}, '<')