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.

Quick-add: + add another resource

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.

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="header">
  <div class="header__background">
    <div id="map"></div>
  </div>
  
  <div class="header__pulsebar"></div>

  <h1 class="header__title">
    <div class="title">
      <span class="title__travel">Travel</span>
      <span class="title__with">with</span>
      <span class="title__tradition"><span>T</span>radition</span>
    </div>
  </h1>
</div>

<!-- Putting these on CodePen's <head> settings doesn't work, so here we go... -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDvWprhNmDUoFx8ljI8gWkAYwBUqu931Es"></script>

<script type="text/javascript" src="//use.typekit.net/sbr1rnr.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
            
          
!
            
              body {
  font-family: "brevia", sans-serif;
}

.hidden {
  display: none;
}

.header {
  display: table;
  position: relative;
  width: 100%;
  height: 100vh;
  background: #639;
  color: white;
  text-align: center;

  &:before,
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  &:before {
    //background: rgba(black, .3);
  }

  &:after {
    z-index: 0;
    //background: linear-gradient(to bottom, rgba(white, 0) 50%, rgba(black, 0.98) 100%);
  }
}


.header__logo {
  position: relative;
  width: 150px;
  fill: white;
}

.header__pulsebar {

  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  &:before,
  &:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    min-width: 275px;
    width: 275px;
    width: 30vw;
    min-height: 275px;
    height: 275px;
    height: 30vw;
    background: black;
    border-radius: 50%;
    opacity: .3;
    z-index: 0;
  }

  &:after {
    border: 5px solid black;
    background: transparent;
    animation: pulseOut 5s ease-out 1s infinite;
  }
}

.header__title {
  display: table-cell;
  position: relative;
  margin: 0;
  font-size: 4em;
  font-weight: 400;
  text-shadow: 0 1px 1px rgba(black, .7);
  vertical-align: middle;
  overflow: hidden;
}

.title {
  position: relative;
  padding: 1em 0;


  & > span {
    display: block;
    position: relative;
    z-index: 1;
  }

  &__travel {
    font-weight: 700;
    letter-spacing: .1em;
    line-height: .7;
    text-transform: uppercase;
  }

  &__with {
    position: relative;
    margin-bottom: -0.2em;
    font-family: "estilo-pro", "brevia", sans-serif;
    font-size: .8em;
    text-transform: uppercase;

    &:before,
    &:after {
      content: '';
      display: inline-block;
      width: 1.5em;
      height: .2em;
      margin: .1em;
      background: white;
      vertical-align: middle;
      box-shadow: 0 1px 1px rgba(black, .3);
    }
  }

  &__tradition {
    line-height: .6;
    letter-spacing: -.07em;
    font-family: "coquette", "brevia", sans-serif;
    font-size: 1.2em;

    span {
      // Chrome and IE has a weird spacing issue with the T, Firefox is cool.
      // Fix this by applying a slight negative margin on them, and then use Firefox's specific margin-end to override this.
      margin-right: -.1em;
      -moz-margin-end: 0;
    }
  }
}

.header__background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  > div {
    height: 100%;
  }
}

@keyframes pulseOut {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  30% {
    opacity: 1;
  }

  50% {
    transform: scale(1);
  }

  70% {
    transform: scale(1);
    opacity: .3;
  }

  95% {
    opacity: 0;
    transform: scale(1.3);
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}


            
          
!
            
              var style = [{"featureType":"poi","stylers":[{"visibility":"off"}]},{"stylers":[{"saturation":-70},{"lightness":37},{"gamma":1.15}]},{"elementType":"labels","stylers":[{"gamma":0.26},{"visibility":"off"}]},{"featureType":"road","stylers":[{"lightness":0},{"saturation":0},{"hue":"#ffffff"},{"gamma":0}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"lightness":50},{"saturation":0},{"hue":"#ffffff"}]},{"featureType":"administrative.province","stylers":[{"visibility":"on"},{"lightness":-50}]},{"featureType":"administrative.province","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"administrative.province","elementType":"labels.text","stylers":[{"lightness":20}]}];

var map = {};
map.center = new google.maps.LatLng(3.634308, 98.700925);

map.options = {
  zoom: 16,
  center: map.center,
  mapTypeId: google.maps.MapTypeId.ROADMAP,
  styles: style,
  disableDefaultUI: true
};


map.markers = {};
map.points = [
  new google.maps.LatLng(3.630732, 98.696769),
  new google.maps.LatLng(3.632488, 98.697885),
  new google.maps.LatLng(3.632327, 98.700502),
  new google.maps.LatLng(3.632177, 98.703968),
  new google.maps.LatLng(3.629222, 98.696039),
  new google.maps.LatLng(3.638002, 98.700610),
  new google.maps.LatLng(3.633848, 98.704526),
  new google.maps.LatLng(3.632541, 98.707734)
];

map.pointIterator = 0;

function addMarkers() {
  map.markers[map.pointIterator] = new google.maps.Marker({
    position: map.points[map.pointIterator++],
    map: map.element,
    animation: google.maps.Animation.DROP,
    title: 'Hello World!'
  });
}

google.maps.event.addDomListener(window, 'load', function() {
  map.element = new google.maps.Map(document.getElementById('map'), map.options);

});

document.addEventListener('DOMContentLoaded', function(){
  for (var i = 0; i < map.points.length; i++) {
    setTimeout(function() {
      addMarkers();
    }, i * 500);
  }
});

google.maps.event.addDomListener(window, 'resize', function() {
  map.element.setCenter(map.center);
});

            
          
!
999px
Loading ..................

Console