Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <html>
<body>
  <header>
    <figure class="fixedratio image1"></figure>
    <div class="animated zoomIn caption">
      <h1>ALAN WATTS</h1>
      <div class="border"></div>
      <h2>a brief tribute</h2>
    </div>
    <div class="content1">
      <p>Alan Watts could be credited as the most popular scholar and philosopher to bring the ideas and myths of eastern religions to the west. An acompolished author and popular lecturer,  Alan delighted audiences with his knowledge and insights which he
        delivered through his gift for charasmatic oration.</p>
    </div>

    <div class="p2">
      <p>I discovered his work at an important time in my life and immedietly got swept up in his spirit. Alan's books and lectures helped give me perspective on my life and relationships as well as what it means to be a conscious individual in the universe.</p>
    </div>

  </header>


  <div class="content2 clearfix">
    <div class="image2"></div>
    <blockquote class="quote">
      <p>Zen does not confuse spirituality with thinking <br> about God while one is peeling potatoes. <br> Zen spirituality is just to peel the potatoes.</p>
      <p>-Alan Watts</p>
    </blockquote>
  </div>

  <div class="content3 clearfix">

    <div class="bio">
      <p>Alan Watts has born in 1915 in Chislehurst, England. He moved to the United States in 1938 and attended Sebury-Western Theological Seminary in New York. He received a master's degree in theology and became an Episcopal priest in 1945. In 1950 he
        left the ministry and moved to California to head the American Academy of Asian Studies.</p>
      <div class="image3"></div>
      <p>Alan gained popularity after becoming a volunteer programmer for the KFPA Berkeley radio station which helped spearhead his career as a much sought after lecturer. Over the years he published over 25 books and articles on the topics and philosophies
        of both eastern and western religions. He drew influence from a myriad of sources stretching beyond religion including, science, psychology, mysticism, general semantics, and psychadelia.</p>
      <div class="image4"></div>
      <p> Watts incurred criticism for some of his interpretations of doctrine to which he responded that he was not an academic philosopher but more accurately "a philosophical entertainer." Criticism aside, Alan Watts' influence continues to this day inspiring
        multiple generations to explore different religions and ideas with an open mind and to look at the universe and their role in it, in a whole new way. Alan died in 1973 in Marin county California. </p>
    </div>


  </div>

  <div class="content4">
    <div class="bib">
      <h4>Selected Bibliography</h4>
      <ul>
        <li>The Book: On the Taboo Against Knowing Who You Are</li>
        <li>The Way of Zen</li>
        <li>This Is It </li>
        <li>The Joyous Cosmology</li>
        <li>In My Own Way</li>
        <li>Cloud-hidden, Whereabouts Unknown</li>
      </ul>
    </div>
    <div class="vid-background">
      <h4>Alan watts on the idea of being a God and losing one self in a dream... </h4>
      <div class="vid">
        <iframe width="560" height="315" src="https://www.youtube.com/embed/-xCFoJ0aywc" frameborder="0" allowfullscreen></iframe>
      </div>
    </div>
    <div class="link">
      <h4>You can learn more about Alan Watts and his work by clicking the ens&#x014D</h4>
      <a href="https://www.alanwattscenter.org">
        <div class="snake"></div>
      </a>
    </div>
    <div style="clear:both"></div>

  </div>
  <footer class="site-footer">Web Design &copy Lowcities 2016</footer>
  
</body>

</html>
              
            
!

CSS

              
                /*********************MAIN CONTAINER STYLES*************************
*******************************************************************/

body {
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, #e8e2dc 75%, transparent), url("https://travisrunyard.com/wp-content/uploads/2014/07/zen-painting-56-fresh-hd-wallpaper.jpg")repeat center fixed;
  background-size: cover;
  
}

header,
.content1,
.content2,
.content3,
.content4,
footer {
  font-family: 'Julius Sans One', sans-serif;
}

.site-footer {
  text-align: center;
  color: aliceblue;
  background-color: black;
  margin-top: 20px;
}


/***********************SITE CONTENT STYLES*****************************
***********************************************************************/

.caption {
  margin-top: -55%;
  margin-bottom: 30%;

}

.caption h1,
.caption h2 {
  color: floralwhite;
  text-align: center;
  font-family: 'Unica One', cursive;
  font-size: 4.5rem;
}

.content1,
.p2 {
  text-align: center;
  display: block;
  font-size: 2rem;
  line-height: 1.7;
}

.p2 {
  margin-top: 20px;
}

.content2 {
 display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 justify-content: center;
 margin-top: 5%;
  
}

.content3 {
  display: inline-block;
  margin: 50px 20px 30px 20px;
  font-size: 2rem;
}



blockquote.quote {
  color: darkslategrey;
  background: linear-gradient( to bottom, #D7D4D4 1%, transparent);
  width: 90%;
  font-size: 2rem;
  margin-top: 20px;
  }

blockquote.quote p {
  text-align: center;
}




.bio {
  display: block;
  line-height: 2;
  
}

.content4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bib,
.link,
.vid-background {
  
  background: linear-gradient( to bottom, #D7D4D4 1%, transparent);
  padding: .5em;
  margin-top: 30px;
  width: 70%;
}


.bib {
  line-height: 2;
}

.bib ul {
  list-style: disc;
  font-size: 1.2em
}

.vid {
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  width: 97%;
}

.vid iframe,
.vid object,
.vid-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vid-background h4 {
  text-align: center;
  line-height: 1.5;
  padding: 4px;
}

.link h4 {
  line-height: 1.5;
}


/******************MAIN IMAGE STYLES*********************************
********************************************************************/

.image1,
.clear {
  position: relative;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.border {
  border-bottom: 1px solid;
  margin: 0 auto;
  width: 60%;
  padding-top: 3px;
}

.image1 {
  display: block;
  background: linear-gradient(to left, transparent 10%, #e8e2dc), url("http://www.thinking-minds.net/wp-content/uploads/2016/07/alan-watts.jpg");
  background-size: cover;
  background-position: center;
  padding-top: 60.25%;
  width: 100%;
  margin: 0;
  z-index: -9;
}

.image2 {
  background-image: url("https://pbs.twimg.com/profile_images/431104967299321856/z0auawQq.jpeg");
  background-size: cover;
  background-position: center;
  width: 80%;
  height: 400px;
  opacity: 0;
  background-repeat: no-repeat;
}

.image3 {
  display: inline-block;
  background: radial-gradient(circle closest-side, transparent, #e8e2dc), url("http://www.prem-rawat-bio.org/gurus/img/drugs/awatts.jpg")center no-repeat;
  width: 100%;
  height: 266px;
}

.image4 {
  display: inline-block;
  background: radial-gradient(circle closest-side, transparent, #e8e2dc), url("http://www.alanwattspodcast.com/images/alanwatts_01_s.jpg")center no-repeat;
 
  height: 300px;
  width: 100%;
}

.snake {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  background: url("https://s-media-cache-ak0.pinimg.com/originals/87/09/e4/8709e4773fc63dfb95df4bc05c3a2869.jpg")center no-repeat;
  border-radius: 50%;
  background-size: contain;
}


/***********************HOVER**************************************
*******************************************************************/

.snake {
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

.snake:hover {
  border: 70px solid #000;
  border-radius: 50%;
}


/***********************************************************************
***********************MEDIA QUERIES***********************************/

@media screen and (min-width: 42em) {
  .caption {
    margin-top: -35%;
    margin-bottom: 20%;
  }
  .caption h1,
  .caption h2 {
    font-size: 60px;
  }
  
  .image3 {
    width: 300px;
    float: right;
  }
  .image4 {
    width: 300px;
    float: left;
    margin-right: 20px;
  }
  .content1,
  .p2 {
    margin: 0 30px 0 15px;
    padding: 0 40px 0 40px;
  }
  
  .content1{
    border-left: 4px solid #a7a1a1;
  }
  
  .p2{
    border-right: 4px solid #a7a1a1;
  }
  
 
  
  
  
  
  .bio {
    font-size: 20px;
    width: 100%;
    padding: 0 50px 0 50px;
  }
  
  .content4{
    margin-bottom: 100px;
    
  }
  
  
  
}


/***End of Query***/

@media screen and ( min-width: 55em ) {
  
  .image2{
    position: relative;
    background-attachment: fixed;
 
  }
  
  
  
}

@media screen and ( min-width: 60em) {
  .content4 {
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    
}
  
  .bib,
  .link,
  .vid-background {
    margin: 0 auto;
    width: 31%;
    
  }
  
  .vid-background {
   
  }
}


@media screen and ( min-width: 76em) {
  .caption h1,
  .caption h2 {
    font-size: 75px;
  }
  .content1,
  .p2 {
    font-size: 2rem;
    margin: 20px 100px 20px 100px;
  }
  
  .content2{
    justify-content: space-around;
  }
  
  .image2 {
   
    width: 50%;
    background-size: contain;
    background-position: 10%;
   }
  
  blockquote.quote {
    
    width: 40%;
    height: 80%;
    
  }
  
}


/***End of Query***/

@media only screen and ( min-width: 1440px) {
  .caption h1,
  .caption h2 {
    font-size: 100px;
  }
  .border {
    padding-top: 40px;
  }
  
}


/****End of Query***/

@media only screen and ( min-width: 2560px) {
  .caption h1,
  .caption h2 {
    font-size: 6rem;
  }
  .caption h1 {
    padding-bottom: -100px;
  }
  .caption h2 {
    padding-top: 50px;
  }
  
  .image2 {
    height: 500px;
  }
  
}


/***End of Query***/
              
            
!

JS

              
                split = function(element) {
  words = $(element).text().split('');
  for (i in words) {
    words[i] = '<span>' + words[i] + '</span>';
  }
  text = words.join('');
  $(element).html(text);
};

textify = function(element, method, delay) {
  split(element);
  $(element + ' span').css('opacity', '0')
  $(element + ' span').css('position', 'relative');
  in_speed = 10;
  count = 0;
  setTimeout(function() {
    count = 0;
    $(element + ' span').each(function() {
      if (method === 'fade') {
        $(this).delay(0 + in_speed * count).animate({
          opacity: '1'
        }, 200);
      } else if (method === 'bounce') {
        $(this).delay(0 + in_speed * count).animate({
          opacity: '1',
          'top': '-4px'
        }, 220, 'easeOutCubic');
        $(this).delay(0 + in_speed * count / 4).animate({
          opacity: '1',
          'top': '0px'
        }, 220);
      }
      count++;
    });
  }, delay);
};

textify('.content1', 'fade', 500);
textify('.p2', 'fade', 4000);

$(window).scroll(function() {
  $(".image1").css("opacity", 1 - $(window).scrollTop() / 300);

});

$(window).scroll(function() {

  $('.image2').css("opacity", 0 + $(window).scrollTop() / 500);
});
              
            
!
999px

Console