Pen ID
Unlock Campus Themeforest adv



Slide in from the left

This animation will focus on sliding an element from the left once it enters the view of the user

Our Testimonials

We have worked in the industry for 15 years and have provided services to a wide range of clients.

Come and see what our clients are saying about our services.

Johnathon Richard Smith

CEO / Manager - Auto Incorporated

When I started using their service I was skeptical. They promised me a 300% return on my initial investment. However they came through on their word and now my business is flourishing..

Joanna Hammerlton

Marketing Manager - Omega Creative

Our company first enlisted their services when we had a down-turn in sales and revene. They outlined a series of steps we could take to improve our position and within a year we are making signifcant improvements..

Mark Jamerson

CEO - Generic Business

We entered into a 12 month period of service with this company in the hopes to improve our returns. After this period we have a return of double our initial investment..

Susan Hilton

Financial Officer - People Tech

Our involvement in this company has been mutually beneficial. We were hoping for slightly higher returns, however the current level of returns are sufficient..
/*These styles contain basic styles for fomatting along with our animation css*/

body {
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  background: #efefef;
  line-height: 170%;

b {
  font-weight: 600

h6 {
  font-weight: 300;
  line-height: 150%;

i.fa {
  color: #333;

*:after {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;

.cf:after {
  content: " ";
  display: table;

.cf:after {
  clear: both;

.main-container {
  background: #fff;
  max-width: 1000px;
  margin: 25px auto 25px auto;
  position: relative;

.container {
  position: relative;
  padding: 25px;
/*animation element*/

.animation-element {
  opacity: 0;
  position: relative;
/*animation element sliding left*/

.animation-element.slide-left {
  opacity: 0;
  -moz-transition: all 500ms linear;
  -webkit-transition: all 500ms linear;
  -o-transition: all 500ms linear;
  transition: all 500ms linear;
  -moz-transform: translate3d(-100px, 0px, 0px);
  -webkit-transform: translate3d(-100px, 0px, 0px);
  -o-transform: translate(-100px, 0px);
  -ms-transform: translate(-100px, 0px);
  transform: translate3d(-100px, 0px, 0px);

.animation-element.slide-left.in-view {
  opacity: 1;
  -moz-transform: translate3d(0px, 0px, 0px);
  -webkit-transform: translate3d(0px, 0px, 0px);
  -o-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  transform: translate3d(0px, 0px, 0px);
/*animation slide left styled for testimonials*/

.animation-element.slide-left.testimonial {
  float: left;
  width: 47%;
  margin: 0% 1.5% 3% 1.5%;
  background: #F5F5F5;
  padding: 15px;
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.2);
  border: solid 1px #EAEAEA;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25);

.animation-element.slide-left.testimonial:nth-of-type(odd) {
  width: 48.5%;
  margin: 0% 1.5% 3.0% 0%;

.animation-element.slide-left.testimonial:nth-of-type(even) {
  width: 48.5%;
  margin: 0% 0% 3.0% 1.5%;

.animation-element.slide-left.testimonial .header{
  float: left;
  width: 100%;
  margin-bottom: 10px;
.animation-element.slide-left.testimonial .left{
  float: left;
  margin-right: 15px;
.animation-element.slide-left.testimonial .right{
  float: left;

.animation-element.slide-left.testimonial img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  box-shadow: 0px 1px 3px rgba(51, 51, 51, 0.5);

.animation-element.slide-left.testimonial h3 {
  margin: 0px 0px 5px 0px;

.animation-element.slide-left.testimonial h4 {
  margin: 0px 0px 5px 0px;

.animation-element.slide-left.testimonial .content {
  float: left;
  margin-bottom: 10px;

.animation-element.slide-left.testimonial .rating{}

.animation-element.slide-left.testimonial i {
  color: #aaa;
  margin-right: 5px;

/*media queries for small devices*/
@media screen and (max-width: 678px){
    width: 100%;
    margin: 0px 0px 20px 0px;
  .animation-element.slide-left.testimonial .right,
  .animation-element.slide-left.testimonial .left,
  .animation-element.slide-left.testimonial .content,
  .animation-element.slide-left.testimonial .rating{
    text-align: center;
    float: none;
  .animation-element.slide-left.testimonial img{
    width: 85px;
    height: 85px;
    margin-bottom: 5px;
/*Interactivity to determine when an animated element in in view. In view elements trigger our animation*/
$(document).ready(function() {

  //window and animation items
  var animation_elements = $.find('.animation-element');
  var web_window = $(window);

  //check to see if any animation containers are currently in view
  function check_if_in_view() {
    //get current window information
    var window_height = web_window.height();
    var window_top_position = web_window.scrollTop();
    var window_bottom_position = (window_top_position + window_height);

    //iterate through elements to see if its in view
    $.each(animation_elements, function() {

      //get the element sinformation
      var element = $(this);
      var element_height = $(element).outerHeight();
      var element_top_position = $(element).offset().top;
      var element_bottom_position = (element_top_position + element_height);

      //check to see if this current container is visible (its viewable if it exists between the viewable space of the viewport)
      if ((element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position)) {
      } else {


  //on or scroll, detect elements in view
  $(window).on('scroll resize', function() {
    //trigger our scroll event on initial load



This example shows how to detect when the user has scrolled into a position and then enable an animation. This one scrolls in content from the left
Mon, 11/27/2017 - 21:21

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv