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.

              <link href="https://fonts.googleapis.com/css?family=Kanit:300|Nosifer" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald:200,300,400,500,700" rel="stylesheet">
<video playsinline autoplay muted loop poster="" id="bgvid">
    <source src="http://www.danielsilber-baker.com/_content/turntable.mp4" type="video/mp4">

<div class="holder">
  <button id = "theButton">
<div id="text"></div>


html {
  box-sizing: border-box;
*, *:before, *:after {
  box-sizing: inherit;

body {
  color: #FFA847;
  font-family: 'oswald';
  font-size: 16px;
  width: 100vw;
  margin: auto;

video#bgvid { 
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url(polina.jpg) no-repeat;
    background-size: cover; 

  top: 54vh;
  left: 63vw;
  width: 60%
.character {
/*   background-color: rgba(84, 11, 14, .5); */
 text-shadow: 0 0em .5em rgba(68,68,68, .7);
  border-radius: 50%;
/*   letter-spacing: .09em; */
  font-size: 110%;
  font-weight: 500;
  margin-left: 0;
  padding: 3em;
  opacity: .1;
  text-transform: uppercase;


.holder {
  position: relative;
  height: 90vh;
  padding: 1em;
  margin: none;
#text {
  z-index: -1; 


  background-color: transparent;
  margin-left: 80%;
  z-index: 1;
  outline: none;
  border: 2px solid #540B0E;
  font-size: 150%;
  color: #9E2A2B;
  text-transform: uppercase;

              $(document).ready(function() {
  /*Part I: The Words */
  var theText = [
    function makeGo() {
  /*Part II: Creating Words On DOM */
  theText.forEach(function(element, index) {
    var newDiv = document.createElement("p");
    var newContent = document.createTextNode(element);
    newDiv.className += "line";
    // newDiv.id += "word" + index;
    $textGrab = $("#text");

  /* Part III: Blast text to make elements by character*/
    delimiter: "character", // Set the delimiter type (see left)
    search: false,
    tag: "div",
    customClass: "character", // Add a custom class to wrappers
    generateIndexID: true, // Add #customClass-i to wrappers
    generateValueClass: true,
    returnGenerated: true

  /* Part IV: Selectors*/

  var $characters = $(".character").toArray();
  var $byWords = $(".character");
  var radius = 180;

  /*Part V: Create The Animations*/

    /*spin words */
    $.Velocity.RegisterUI("spin", {
      calls: [
            translateX: '-=62vw',
            rotateX: 360,
            // transformOriginX: "-=66vw",
            // transformOriginZ:"-=27vw",
            translateZ: "-=10vw",
            textShadowY: "-=.2em",
            opacity: .9,
            fontSize: "+=.8em",
          {easing: "easeInOutBounce", delay: 350, drag:true  }]]
    var stew = [];
    for (var i = 0; i < $characters.length; i++) {
      var wave = {
        e: $characters[i],
        p: "spin",
        o: { easing: "easeInOutSine", sequenceQueue: false }
// create the second part of the animation once all initial characters are done with Anim1
      var secondWave = {
        e: $characters,
        p: {  translateY: "-=65vh",
          fontSize: "+=.9em",
        margin: "+=1.2em",
          textShadowX: "+=.2em",
          skewY: -9},
        o: {sequenceQueue: false, duration: 1100} //end o section
  } //end function

  // call function
  /* VI: Replay */
  $("#theButton").click(function() {
// empty text and then call makeGo again

}); // end on load

🕑 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.