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

              
                <section>
<div class="wrapper">
  <div class="valencia">
    <div class="container_clock">
         <div class="clock-side">
           
           <div class="city">Valencia</div>
           <div class="hour es"></div>
           <div class="minute"></div>
           <div class="seconds"></div>
           <div class="center"></div>
           <div class="shadow"></div>
         </div> 
         <div id="map_canvas_es" class="hexagon" style="width:100%; height:100%"></div>
    </div>
    <div id="map_canvas_es2" style="width:100%; height:100%"></div>
    
  </div>
  
  
  <div class="guatemala">
      <div class="container_clock">
          <div class="clock-side">
           
           <div class="city">Guatemala</div>
           <div class="hour gt"></div>
           <div class="minute"></div>
           <div class="seconds"></div>
           <div class="center"></div>
           <div class="shadow"></div>
         </div> 
         <div id="map_canvas_gt" class="hexagon" style="width:100%; height:100%"></div>
      </div>
     <div id="map_canvas_gt2"  style="width:100%; height:100%"></div>
  </div>
</div>
</section>  


              
            
!

CSS

              
                @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Dosis:300,400,500);

$width:265px;
$height:152px;


*, *:before, *:after{
  box-sizing:border-box;
}

.wrapper { 
  position:absolute;
  height:100%;
  width:100%;   
 }
.valencia, .guatemala {
  width:50%;
  float:left;    
  height:100%;
  position:relative;
  overflow:hidden;  
}   

.container_clock {
  width:100%; 
  height:100%;  
  background:rgba(0,0,0,0.8); 
  position: absolute;
  z-index:4; 
  
}
.hexagon {
  -webkit-clip-path: polygon(263px 153px, 394px 226px, 394px 376px, 263px 450px, 134px 371px, 138px 227px);      
  clip-path: url(#hexagon); 
  background:transparent !important;  
 
}
 
.clock-side {
  width:$width;
  height:$height; 
  background:transparent;
  position:absolute;
  z-index:20;
  margin-top:225px;
  margin-left:135px;
  border-left:3px solid white;
  border-right:3px solid white;
  box-shadow:inset 3px 0px 0px 0px#ccc,
    inset -3px 0px 0px 0px #ccc;
  &::before{
   content:"";
 width:$width;
  height:$height; 
  background:transparent;
  position:absolute;
  z-index:20;
  margin-top:0px;
  margin-left:-4px; 
  border-left:3px solid white;
  border-right:3px solid white;
  box-shadow:inset 3px 0px 0px #ccc,
  inset -3px 0px 0px #ccc;
  @include rotate(60deg)  
  }  
  &::after{
  content:"";
  width:$width;
  height:$height; 
  background:transparent;
  position:absolute;
  z-index:20;
  margin-top:0px; 
  margin-left:-4px; 
  border-left:3px solid white;
  border-right:3px solid white;
  box-shadow:inset 3px 0px 0px #ccc,
  inset -3px 0px 0px #ccc;
  @include rotate(-60deg)  
    
  }
}
.city{
  position:absolute;
  text-transform:uppercase;
  color:#333;
  font-family: 'Dosis', sans-serif;
  margin-left:90px;
  margin-top:-15px;
  font-weight:500;
  font-size:1.3em;
  border-bottom:1px solid #df7537;
 
}
.center {
  width:10px;
  height:10px;
  background:white;
  position:absolute;
  border-radius:50%;
  margin-left:125px;
  margin-top:75px;
  box-shadow:0 0 0 3px #666;
  z-index:100;
}
.hour{
  width:4px;
  height:70px;
  background:#232f3e;
  position:absolute;
  margin-left:128px;
  margin-top:10px;
   z-index:50;
   transform-origin: bottom left;
  transform-style: preserve-3D;
   animation: time 43200s infinite linear;
  &.es{
     transform: rotate(280deg); 
  }
  &.gt{
     transform: rotate(80deg); 
  }
}    
.minute{
  width:3px;
  height:175px;
  background:#1f2b37;
  position:absolute;
  margin-left:128px;
  margin-top:-90px;
  z-index:50; 
  transform-origin: bottom left;
  transform-style: preserve-3D;
   transform: rotate(210deg); 
  animation: time 3600s infinite linear;  
  
} 
.seconds{
  width:2px;
  height:200px;
  background:#df7537;
  position:absolute;
  margin-left:128px;
  margin-top:-122px; 
  z-index:50;
  transform-origin: bottom left;
  transform-style: preserve-3D;
   transform: rotate(60deg); 
  animation: time 60s infinite linear;  
}    

@keyframes time {
  to {
    transform: rotate(360deg); 
  }
}
              
            
!

JS

              
                var map_1 =  new GMaps({
  div: '#map_canvas_es',  
  lat: 39.468852,
  lng: -0.374397, 
  zoom: 14,
  disableDefaultUI: true,
   scrollwheel: false,
   draggable: false
}); 
var map_2 = new GMaps({
  div: '#map_canvas_es2',  
  lat: 39.468852,
  lng: -0.374397,
  zoom: 14,
  disableDefaultUI: true,
   scrollwheel: false,
   draggable: false
}); 
var map_3 = new GMaps({
  div: '#map_canvas_gt',  
  lat: 14.610977,
  lng: -90.540529,
  zoom: 14,
 disableDefaultUI: true,
   scrollwheel: false,
   draggable: false
}); 
var map_4 = new GMaps({
  div: '#map_canvas_gt2',  
  lat: 14.610977,
  lng: -90.540529,
  zoom: 14,
  disableDefaultUI: true,
   scrollwheel: false,
   draggable: false
}); 

var styles = [
{
  stylers: [
    { hue: "#dadee1" },
    { saturation: -50 }
   ]
 },{
    featureType: "road",
    elementType: "labels",
    stylers: [
    { visibility: "off" }
]
} 
];
var styles2 = [
  {
   stylers: [
     { hue: "#68aa2d" },
     { saturation: -50 }
   ]
  }, {
      featureType: "road",
      elementType: "labels",
      stylers: [
      { visibility: "off" }
]
} 
];
        
 map_1.addStyle({
     styledMapName:"Styled Map",
     styles: styles,
     mapTypeId: "map_style"  
 }); 

 map_1.setStyle("map_style");

 map_2.addStyle({
     styledMapName:"Styled Map",
     styles: styles,
     mapTypeId: "map_style"  
 }); 

 map_2.setStyle("map_style");

 map_3.addStyle({
     styledMapName:"Styled Map",
     styles: styles2,
     mapTypeId: "map_style"  
 });   

 map_3.setStyle("map_style");

 map_4.addStyle({
     styledMapName:"Styled Map",
     styles: styles2,
     mapTypeId: "map_style"  
 });   

 map_4.setStyle("map_style");




//horas -deg
var x = horas; 

horasDeg = x*(Math.PI/43200)/(Math.PI/180);


              
            
!
999px

Console