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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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() {
Loading ..................