css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              svg#svg1(version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', x='0px', y='0px', viewbox='0 0 512 512', xml:space='preserve')
  path#bulbpath.st0(d='M57.3 166.2H12.7c-6.8 0-12.4 5.5-12.4 12.4 0 6.8 5.5 12.4 12.4 12.4h44.6c6.8 0 12.4-5.5 12.4-12.4C69.7 171.7 64.2 166.2 57.3 166.2zM499.3 166.2h-44.6c-6.8 0-12.4 5.5-12.4 12.4 0 6.8 5.5 12.4 12.4 12.4h44.6c6.8 0 12.4-5.5 12.4-12.4C511.6 171.7 506.1 166.2 499.3 166.2zM108.3 326.2c-4.8-4.8-12.7-4.8-17.5 0l-32.4 32.4c-4.8 4.8-4.8 12.7 0 17.5 2.4 2.4 5.6 3.6 8.8 3.6 3.2 0 6.3-1.2 8.8-3.6l32.4-32.4C113.2 338.9 113.2 331 108.3 326.2zM430.9 3.6c-4.8-4.8-12.7-4.8-17.5 0l-31.5 31.5c-4.8 4.8-4.8 12.7 0 17.5 2.4 2.4 5.6 3.6 8.8 3.6 3.2 0 6.3-1.2 8.8-3.6l31.5-31.5C435.8 16.3 435.8 8.5 430.9 3.6zM130.1 35.1 98.6 3.6c-4.8-4.8-12.7-4.8-17.5 0-4.8 4.8-4.8 12.7 0 17.5l31.5 31.5c2.4 2.4 5.6 3.6 8.8 3.6 3.2 0 6.3-1.2 8.8-3.6C135 47.8 135 40 130.1 35.1zM453.6 358.6l-32.3-32.3c-4.8-4.8-12.7-4.8-17.5 0-4.8 4.8-4.8 12.7 0 17.5l32.3 32.3c2.4 2.4 5.6 3.6 8.8 3.6 3.2 0 6.3-1.2 8.8-3.6C458.4 371.3 458.4 363.5 453.6 358.6zM256 33.6c-85.6 0-155.3 72.9-155.3 162.5 0 41.7 14.9 86.5 40.9 123 20 28 30.5 59.2 30.5 90.2v77.9c0 13.7 11.1 24.8 24.8 24.8h118.2c13.7 0 24.8-11.1 24.8-24.8v-77.9c0-31 10.6-62.2 30.5-90.2 26-36.5 40.9-81.4 40.9-123C411.3 106.5 341.6 33.6 256 33.6zM315.1 487.2H196.9V471H256c6.8 0 12.4-5.5 12.4-12.4 0-6.8-5.5-12.4-12.4-12.4h-59.1v-16.2h118.2L315.1 487.2C315.1 487.2 315.1 487.2 315.1 487.2zM238.6 256.1l-16.6-35.4h67.9l-16.6 35.4c-.7 1.4-1 2.9-1.1 4.4l-9.6 144.7h-13.2l-9.6-144.7C239.7 259 239.3 257.5 238.6 256.1zM350.2 304.7c-22.1 31.1-34.2 65.7-35.1 100.5h-27.7l9.3-140.7 23.8-50.9c1.8-3.8 1.5-8.3-.8-11.9-2.3-3.6-6.2-5.7-10.5-5.7H202.6c-4.2 0-8.2 2.2-10.5 5.7-2.3 3.6-2.6 8.1-.8 11.9l23.8 50.9 9.3 140.7h-27.7c-.9-34.8-13-69.5-35.1-100.5-22.8-31.9-36.3-72.6-36.3-108.6 0-75.9 58.6-137.7 130.6-137.7s130.6 61.8 130.6 137.7C386.6 232.2 373 272.8 350.2 304.7z')
  path#atomic.st0(d='M269.4 201.3c-36.3 0-65.9 29.6-65.9 65.9 0 36.3 29.6 65.9 65.9 65.9 36.3 0 65.9-29.6 65.9-65.9C335.3 230.8 305.7 201.3 269.4 201.3zM269.4 308.1c-22.6 0-41-18.4-41-41s18.4-41 41-41c22.6 0 41 18.4 41 41S292 308.1 269.4 308.1zM510.3 153.2c4.9-35.7-.7-66-16.1-88.4 2.5-5.6 3.9-11.7 3.9-18.2 0-24.4-19.9-44.3-44.3-44.3-16.5 0-30.9 9.1-38.6 22.5-41.8-2.1-92.9 13.3-145.8 43.8C179 16.4 97.2 10.1 54.8 52.6c-18.4 18.4-28 44.8-28 76.7C11.1 136.1 0 151.8 0 170c0 24.4 19.9 44.3 44.3 44.3.3 0 .5 0 .8 0 6.8 17.3 15.4 35.1 25.7 52.9-52.2 90.4-58.5 172.2-16 214.6 18.7 18.7 45.1 28 76.5 28 39.8 0 87.6-14.8 138.1-44 50.5 29.2 98.3 44 138.1 44 31.4 0 57.8-9.2 76.5-28 42.5-42.5 36.2-124.3-16.1-214.6C490.9 227.4 505.5 188.1 510.3 153.2zM453.8 27.2c10.7 0 19.4 8.7 19.4 19.4S464.5 66 453.8 66s-19.4-8.7-19.4-19.4S443.1 27.2 453.8 27.2zM409.6 49.5c1.5 23.1 20.8 41.4 44.2 41.4 8.5 0 16.4-2.4 23.2-6.6 9.2 16.8 12.2 39.1 8.6 65.5-3.9 28.3-15.1 60.2-32.7 93-20-30.4-44.1-59.7-71.8-87.4-27.7-27.7-57-51.8-87.4-71.8C336.2 60.8 376.4 49 409.6 49.5zM44.3 189.4c-10.7 0-19.4-8.7-19.4-19.4 0-10.7 8.7-19.4 19.4-19.4s19.4 8.7 19.4 19.4C63.7 180.7 55 189.4 44.3 189.4zM69 206.8c11.9-8 19.7-21.5 19.7-36.8 0-21.9-16-40.1-36.9-43.7.5-23.8 7.5-43 20.6-56.1 31.9-31.9 98.4-26.3 172.7 13.4-30.4 20-59.7 44.1-87.4 71.8-27.7 27.7-51.8 57-71.8 87.4C79.3 230.7 73.7 218.7 69 206.8zM72.4 464.1c-31.9-31.9-26.3-98.4 13.4-172.7 20 30.4 44.1 59.7 71.8 87.4 27.7 27.7 57 51.8 87.4 71.8C170.8 490.4 104.3 496 72.4 464.1zM175.3 361.2c-29.7-29.7-55.1-61.3-75.4-94.1 20.4-32.8 45.7-64.4 75.4-94.1 29.7-29.7 61.3-55.1 94.1-75.4 32.8 20.4 64.4 45.7 94.1 75.4 29.7 29.7 55.1 61.3 75.4 94.1-20.4 32.7-45.7 64.4-75.4 94.1-29.7 29.7-61.3 55.1-94.1 75.4C236.6 416.3 205 391 175.3 361.2zM466.4 464.1c-31.9 31.9-98.4 26.3-172.7-13.4 30.4-20 59.7-44.1 87.4-71.8 27.7-27.7 51.8-57 71.8-87.4C492.7 365.7 498.3 432.3 466.4 464.1z')
  path#coffee.st0(d='M409.4 92.5c1.3-3.2 2-6.6 2-10.2v-9.1c0-15.1-12.3-27.4-27.4-27.4H224.6L199.8 4.4C198.2 1.7 195.2 0 192 0h-36.6c-5 0-9.1 4.1-9.1 9.1v36.6H128c-15.1 0-27.4 12.3-27.4 27.4v9.1c0 3.6.7 7 2 10.2-11.7 3.2-20.3 13.7-20.3 26.4v54.9c0 15.1 12.3 27.4 27.4 27.4h1.6l5.5 27.4h-7.1c-2.6 0-5 1.1-6.8 3-1.7 1.9-2.6 4.5-2.3 7l18.3 182.9c.5 4.7 4.4 8.2 9.1 8.2h9.6l8.7 74.2c.5 4.6 4.4 8.1 9.1 8.1h210.3c4.7 0 8.6-3.5 9.1-8.1l8.2-74.1h10.1c4.9 0 8.9-3.8 9.1-8.7l9.1-182.9c.1-2.5-.8-4.9-2.5-6.8-1.7-1.8-4.1-2.8-6.6-2.8h-7.1l5.5-27.4h1.6c15.1 0 27.4-12.3 27.4-27.4v-54.9C429.7 106.2 421.1 95.6 409.4 92.5zM164.6 18.3h22.3l16.5 27.4h-38.7V18.3zM118.9 73.1c0-5 4.1-9.1 9.1-9.1h256c5 0 9.1 4.1 9.1 9.1v9.1c0 5-4.1 9.1-9.1 9.1H128c-5 0-9.1-4.1-9.1-9.1V73.1zM357.5 493.7h-194l-7.5-64h208.6L357.5 493.7zM384.4 411.4h-9.6H145.7h-9.5l-16.5-164.6h8.2 256 8.7L384.4 411.4zM376.5 228.6h-241l-5.5-27.4h252L376.5 228.6zM411.4 173.7c0 5-4.1 9.1-9.1 9.1h-9.1H118.9h-9.1c-5 0-9.1-4.1-9.1-9.1v-54.9c0-5 4.1-9.1 9.1-9.1H128h256 18.3c5 0 9.1 4.1 9.1 9.1V173.7zM256 265.1c-51.3 0-91.4 28.1-91.4 64s40.2 64 91.4 64 91.4-28.1 91.4-64S307.3 265.1 256 265.1zM256 374.9c-39.6 0-73.1-20.9-73.1-45.7 0-24.8 33.5-45.7 73.1-45.7s73.1 20.9 73.1 45.7C329.1 353.9 295.6 374.9 256 374.9z')
svg#svg2(version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink', x='0px', y='0px', viewbox='0 0 512 512', style='enable-background:new 0 0 512 512;', xml:space='preserve')
  path#ideas.st0(d='M125.2 219.5c0-3.5 2.6-6.1 6.2-6.1s6.2 2.6 6.2 6.1c0 3.5-2.6 6.1-6.2 6.1S125.2 223 125.2 219.5zM126.4 239.1h10V298h-10V239.1zM151.2 268.6c0-18.9 12.8-30.8 26.8-30.8 8.2 0 16.3 4.1 20.4 11.5v-38.4h10V298h-8.2l-1.2-10.8c-4.5 7.9-12.6 12.1-21 12.1C164.1 299.3 151.2 287.3 151.2 268.6zM198.5 268.5c0-12.6-8.2-21.3-18.5-21.3-10.6 0-18.8 8.7-18.8 21.4 0 12.6 8.3 21.3 18.8 21.3C190.4 290 198.5 281.2 198.5 268.5zM276.3 271.9h-43.7c1.4 11.6 9.7 18.7 20.8 18.7 6.8 0 13.7-2.5 19.8-7.7v9.9c-6 4.4-13 6.5-20.6 6.5-18.3 0-29.8-12.3-29.8-30.5 0-19.1 13.2-31 28.4-31 13.9 0 25.4 10.2 25.4 29.6C276.6 269.2 276.5 270.6 276.3 271.9zM266.9 264.4c-.2-12.2-7.7-17.9-15.8-17.9-9 0-17 6.9-18.5 17.9H266.9zM287.2 268.6c0-18.8 13-30.8 26.8-30.8 8.5 0 16.5 4.2 21 12.2l1.2-10.9h8.2V298h-8.2l-1.2-10.8c-4.5 7.9-12.5 12.1-21 12.1C300.1 299.3 287.2 287.2 287.2 268.6zM334.6 268.5c0-12.6-8.3-21.3-18.6-21.3-10.6 0-18.7 8.7-18.7 21.4 0 12.6 8.2 21.3 18.7 21.3C326.3 290 334.6 281.2 334.6 268.5zM398.9 242.9v9.9c-4.2-3.6-10.7-6.1-17.6-6.1-7.4 0-11.5 3.2-11.5 7.9 0 5.2 5.1 7.2 13.1 9.5 9 2.6 19.3 5.6 19.3 17.4 0 10.8-8.4 17.7-22 17.7-7.6 0-14.9-2.2-20.4-6.5V282c4.6 4.7 11.5 8.4 20 8.4 7.9 0 12.5-3.5 12.5-8.7 0-5.7-5.6-7.5-14-10.1-9.7-2.9-18.3-6.1-18.3-16.4 0-9.9 8.2-17.3 21.2-17.3C387.9 237.8 394.7 239.8 398.9 242.9z')
  path#research.st0(d='M39.1 239.1h7.9l1.1 9.4h.1c4-7.6 11.6-10 16.9-10 1.5 0 2.7.1 3.9.3v9.6c-1.3-.2-2.7-.4-4.1-.4-7.8 0-15.8 5-15.8 16.5V298h-10V239.1zM127.8 271.9H84.1c1.4 11.6 9.7 18.7 20.8 18.7 6.8 0 13.7-2.5 19.8-7.7v9.9c-6 4.4-13 6.5-20.6 6.5-18.3 0-29.8-12.3-29.8-30.5 0-19.1 13.2-31 28.4-31 13.9 0 25.4 10.2 25.4 29.6C128.1 269.2 128 270.6 127.8 271.9zM118.4 264.4c-.2-12.2-7.7-17.9-15.8-17.9-9 0-17 6.9-18.5 17.9H118.4zM178.7 242.9v9.9c-4.2-3.6-10.7-6.1-17.6-6.1-7.4 0-11.5 3.2-11.5 7.9 0 5.2 5.1 7.2 13.1 9.5 9 2.6 19.3 5.6 19.3 17.4 0 10.8-8.4 17.7-22 17.7-7.6 0-14.9-2.2-20.4-6.5V282c4.6 4.7 11.5 8.4 20 8.4 7.9 0 12.5-3.5 12.5-8.7 0-5.7-5.6-7.5-14-10.1-9.7-2.9-18.3-6.1-18.3-16.4 0-9.9 8.2-17.3 21.2-17.3C167.7 237.8 174.6 239.8 178.7 242.9zM245.9 271.9h-43.7c1.4 11.6 9.7 18.7 20.8 18.7 6.8 0 13.7-2.5 19.8-7.7v9.9c-6 4.4-13 6.5-20.6 6.5-18.3 0-29.8-12.3-29.8-30.5 0-19.1 13.2-31 28.4-31 13.9 0 25.4 10.2 25.4 29.6C246.2 269.2 246.1 270.6 245.9 271.9zM236.5 264.4c-.2-12.2-7.7-17.9-15.8-17.9-9 0-17 6.9-18.5 17.9H236.5zM256.8 268.6c0-18.8 13-30.8 26.8-30.8 8.5 0 16.5 4.2 21 12.2l1.2-10.9h8.2V298h-8.2l-1.2-10.8c-4.5 7.9-12.5 12.1-21 12.1C269.7 299.3 256.8 287.2 256.8 268.6zM304.2 268.5c0-12.6-8.3-21.3-18.6-21.3-10.6 0-18.7 8.7-18.7 21.4 0 12.6 8.2 21.3 18.7 21.3C296 290 304.2 281.2 304.2 268.5zM332.2 239.1h7.9l1.1 9.4h.1c4-7.6 11.6-10 16.9-10 1.5 0 2.7.1 3.9.3v9.6c-1.3-.2-2.7-.4-4.1-.4-7.8 0-15.8 5-15.8 16.5V298h-10V239.1zM397.6 290c4.9 0 10.8-1 15.7-4.8v10.1c-4.4 2.5-9.9 4-16.3 4-17 0-29.7-13.2-29.7-30.8 0-17.4 12.7-30.7 29.7-30.7 6.1 0 11.6 1.2 16.3 4.1v10.2c-4.9-3.6-9.7-5-15.8-5-10.3 0-20.1 8.1-20.1 21.3C377.4 282 387.2 290 397.6 290zM438.2 246.2h.1c3.4-5 9.7-8.4 16.9-8.4 13 0 21.2 7.4 21.2 21.2v39h-10v-35.5c0-10.3-4.5-15.4-13.5-15.4-7.8 0-14.7 4.6-14.7 14.4V298h-10v-87.1h10V246.2z')
  path#coffeetext.st0(d='M129.7 290c4.9 0 10.8-1 15.7-4.8v10.1c-4.4 2.5-9.9 4-16.3 4-17 0-29.7-13.2-29.7-30.8 0-17.4 12.7-30.7 29.7-30.7 6.1 0 11.6 1.2 16.3 4.1v10.2c-4.9-3.6-9.7-5-15.8-5-10.3 0-20.1 8.1-20.1 21.3C109.5 282 119.3 290 129.7 290zM155.4 268.6c0-17.7 12.6-30.8 29.4-30.8 16.7 0 29.2 13.1 29.2 30.8 0 17.6-12.5 30.7-29.2 30.7C168 299.3 155.4 286.4 155.4 268.6zM204 268.6c0-13.6-9.4-21.4-19.2-21.4-9.9 0-19.3 7.8-19.3 21.4 0 13.6 9.4 21.3 19.3 21.3C194.6 290 204 282.1 204 268.6zM230.8 247.8h-8.5v-8.7h8.5v-8.8c0-11.6 8.1-19.9 20-19.9 3.4 0 6.8.7 9.8 1.6v9.3c-2.1-.9-5.7-1.5-8.6-1.5-7.3 0-11.3 3.6-11.3 11.9v7.5h17v8.7h-16.9V298h-10V247.8zM271.9 247.8h-8.5v-8.7h8.5v-8.8c0-11.6 8.1-19.9 20-19.9 3.4 0 6.8.7 9.8 1.6v9.3c-2.1-.9-5.7-1.5-8.6-1.5-7.3 0-11.3 3.6-11.3 11.9v7.5h17v8.7h-16.9V298h-10V247.8zM357.7 271.9H314c1.4 11.6 9.7 18.7 20.8 18.7 6.8 0 13.7-2.5 19.8-7.7v9.9c-6 4.4-13 6.5-20.6 6.5-18.3 0-29.8-12.3-29.8-30.5 0-19.1 13.2-31 28.4-31 13.9 0 25.4 10.2 25.4 29.6C358 269.2 357.9 270.6 357.7 271.9zM348.3 264.4c-.2-12.2-7.7-17.9-15.8-17.9-9 0-17 6.9-18.5 17.9H348.3zM422.1 271.9h-43.7c1.4 11.6 9.7 18.7 20.8 18.7 6.8 0 13.7-2.5 19.8-7.7v9.9c-6 4.4-13 6.5-20.6 6.5-18.3 0-29.8-12.3-29.8-30.5 0-19.1 13.2-31 28.4-31 13.9 0 25.4 10.2 25.4 29.6C422.5 269.2 422.3 270.6 422.1 271.9zM412.8 264.4c-.2-12.2-7.7-17.9-15.8-17.9-9 0-17 6.9-18.5 17.9H412.8z')

h2#end arcticben.co.uk
  span |
            
          
!
            
              body
  background-color: blue
  background-size: cover
  text-align: center

  
.st0 
  fill: rgba(255, 255, 255, 0)
  stroke: #fff
  stroke-width: 10px
  
#svg1
  width: 150px
  display: block
  margin: 0px auto
  padding: 15% 100px 0 100px
#svg2
  width: 200px
  display: block
  margin: 0 auto
  
#atomic, #coffee, #research, #coffeetext
  visibility: hidden

h2
  font-family: Montserrat
  opacity: 0
  color: #fff
  
span
  animation: blink 1s infinite
  
.activ
  animation: type 1s steps(20, end)  
  font-size: 50px
  opacity: 1
  width: 9em
  overflow: hidden
  position: absolute
  left: 0
  right: 0
  top: 50%
  margin: 0 auto
  
@keyframes type
  from 
    width: 0 
    
@keyframes blink
  to 
    opacity: .0
          
            
          
!
            
              var bulb = document.getElementById('bulbpath'),
    atomic = document.getElementById('atomic'),
    coffee = document.getElementById('coffee'),
    ideas = document.getElementById('ideas'),
    research = document.getElementById('research'),
    coffeetext = document.getElementById('coffeetext'),
    end = document.getElementById('end'),
    icons = new TimelineMax();

icons
    .set(ideas, {drawSVG: 0})
    .set(bulb, {drawSVG: 0})

    .to(ideas, 2, {drawSVG:'100%', ease:Power1.easeInOut},0)
    .to(bulb, 2, {drawSVG:'100%', ease:Power1.easeInOut},0)

    .to(bulb, 2, 
            {morphSVG:coffee, ease:Elastic.easeIn},2)
    .to(ideas, 2, {morphSVG:coffeetext, ease:Elastic.easeIn},2)

    .to(bulb, 2, 
             {morphSVG:atomic, ease:Elastic.easeIn},4)
    .to(ideas, 2, {morphSVG:research, ease:Elastic.easeIn},4)

    .to(bulb, 2, {drawSVG: '0', ease:Power1.easeInOut}, 5)
    .to(ideas, 2, {drawSVG: '0', ease:Power1.easeInOut}, 5)
    
    .set(end,{css:{className:'activ'}},7);

icons.play();
            
          
!
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.
Loading ..................

Console