LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Contact Us

Email
hello@example.com
Phone
555-3945834
Address
30 Lakeside Drive,
Pleasantview
CSS
.card, .card__heading {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card:after {
  content: '';
  display: table;
  clear: both;
}

body {
  background: #eff6f8;
  font-family: Roboto, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
}

.container {
  width: 580px;
  margin: 40px auto;
}

.card {
  display: block;
  width: 100%;
  position: relative;
  background: white;
  z-index: 0;
}
.card__heading {
  display: inline-block;
  position: absolute;
  top: -0.5em;
  left: -0.5em;
  padding: 14px 22px 11px;
  text-transform: uppercase;
  font-size: 2em;
  font-weight: 500;
  color: white;
  background: #29e3dc;
}

.contact__map {
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: -1;
}
.contact__map:before, .contact__map:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.contact__map:after {
  background: -webkit-radial-gradient(ellipse 80px 80px at 184px 155px, rgba(255, 255, 255, 0.2) 99%, #ffffff 250%);
  background: radial-gradient(ellipse 80px 80px at 184px 155px, rgba(255, 255, 255, 0.2) 99%, #ffffff 250%);
  mix-blend-mode: saturation;
}
.contact__map:before {
  background: -webkit-radial-gradient(ellipse 80px 80px at 184px 155px, rgba(255, 255, 255, 0.2) 99%, rgba(255, 255, 255, 0.8) 100%);
  background: radial-gradient(ellipse 80px 80px at 184px 155px, rgba(255, 255, 255, 0.2) 99%, rgba(255, 255, 255, 0.8) 100%);
  mix-blend-mode: screen;
  z-index: 1;
}
.contact__map .map__inner {
  width: 100%;
  height: 100%;
}
.contact__map .map__inner .leaflet-control-attribution {
  opacity: 0.4;
}
.contact__map .map__inner .leaflet-control-attribution:hover {
  opacity: 0.6;
}
.contact__map .map__circle {
  display: block;
  box-sizing: border-box;
  width: 160px;
  height: 160px;
  position: absolute;
  left: 104px;
  top: 75px;
  border: 6px solid #29e3dc;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1) inset;
  z-index: 1;
}
.contact__content {
  float: right;
  padding: 30px 50px;
  line-height: 1.35;
}

dt {
  margin-top: 1.35em;
}
dt:first-child {
  margin-top: 0;
}

dt {
  color: #818181;
}

dd {
  color: #19c0ba;
}
JS
var map = L.map('contact-map', { zoomControl: false, attributionControl: false }).setView([-37.796407, 175.277832], 15);

L.tileLayer('http://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.{ext}', {
	attribution: 'Map tiles by Stamen Design, CC BY 3.0 — Map data © OpenStreetMap',
	subdomains: 'abcd',
	minZoom: 1,
	maxZoom: 16,
	ext: 'png'
}).addTo(map);

L.control.attribution({position: 'bottomleft'}).addTo(map);

map.panBy([106, 0], { animate: false });

Description

Inspired by https://dribbble.com/shots/1205678-Hello-Innovation
Term
Wed, 11/29/2017 - 14:07

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv