cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

              <div class="video-wrapper">
  <div class="video-overlay">
    <a class="play-btn">
        <svg version="1.1" id="Layer_1" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
         xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-380 289 31 35"
         style="enable-background:new -380 289 31 35;" xml:space="preserve">
      <style type="text/css">
      <desc>Created with Sketch.</desc>
      <g id="aiux" sketch:type="MSPage">
        <g id="tablet---lesson" transform="translate(-411.000000, -184.000000)" sketch:type="MSArtboardGroup">
          <g id="video" transform="translate(80.000000, 0.000000)" sketch:type="MSLayerGroup">
            <g id="viewer" transform="translate(16.000000, 16.000000)" sketch:type="MSShapeGroup">
              <g id="play" transform="translate(279.000000, 135.000000)">
                <path class="st0" d="M-340.5,323c-1.9-1.1-3.5-0.2-3.5,2v29c0,2.2,1.6,3.1,3.5,2.1l26-14.2c1.9-1.1,2-2.8,0-3.9L-340.5,323z"/>

  <script src="//fast.wistia.net/assets/external/E-v1.js" async></script>
  <iframe src="//fast.wistia.net/embed/iframe/4l5l0snl8w?videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" id="myVideo" name="wistia_embed" allowfullscreen mozallowfullscreen webkitallowfullscreen oallowfullscreen msallowfullscreen width="640" height="400"></iframe><script src="//fast.wistia.net/assets/external/E-v1.js"></script>

              $primary: #33bbaa
$black: black

  transition: all .2s ease-out

  width: 100%
  height: 100%
  background-image: radial-gradient(circle, rgba($primary, .25), rgba($black, 1))
  position: absolute
  z-index: 2000 !important
  top: 0
  left: 0

  position: relative

  position: absolute
  width: 55px
  height: 60px
  top: 50%
  left: 50%
  transform: translateY(-50%) translateX(-50%)
  background: rgba($black, .75)
  text-indent: .25em
  padding: 3em
  margin: 0
  border-radius: 50%
    background: rgba($black, .95)
    transform: translateY(-50%) translateX(-50%) scale(1.05)
              // grab Wista API
wistiaEmbed = document.getElementById("myVideo").wistiaApi;

// when the video is stopped
wistiaEmbed.bind("end", function() {

//when the video is paused
wistiaEmbed.bind("pause", function() {

//when the video time changes
wistiaEmbed.bind("secondchange", function() {

// when you click the custom play button
$('.video-overlay').click(function() {
🕑 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 ..................