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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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>
	<head>
		<title>Demo</title>
		<link rel="stylesheet" type="text/css" href="styles/style.css">
		<script src="https://maps.googleapis.com/maps/api/js"></script>
		<link rel="stylesheet" type="text/css" href="images/pins-of-maps/flaticon.css">
	</head>
	<body>
	<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>

<script type="text/javascript">
      
</script>
<div id = "blur" class="blurit">
<div class="fixed">
		<span class = ".flaticon-bag1"></span>
</div>


<div id="map-canvas" > </div>


 
</div>
<div id="wrapper" class="circlewrapper">
 



</div>
<div class="floor"></div>
<div class='container'>
  <div class="S"></div>
  <div class="S"></div>
  <div class="S"></div>
  <div class="S">A</div>
  <div class="S">B</div>
  <div class="S">C</div>
  <div class="S">D</div>
  <div class="S"></div>
  <div class="S"></div>
  <div class="S"></div>
</div>

		<section>	
		<span class="tooltip"></span> <!-- Tooltip -->
		<div id="slider"></div> <!-- the Slider -->
	</section>

	<script src="./js/jquery-1.7.2.min.js"></script>
	<script src="./js/jquery-ui-1.8.21.custom.min.js"></script>
	
	<script src="./js/GreenSock/src/minified/TweenMax.min.js" ></script>
	<script src="./js/GreenSock/src/minified/TimelineMax.min.js" ></script>
	<script src="./js/GreenSock/src/minified/plugins/DrawSVGPlugin.min.js" ></script>
	<script src="./js/ScrollMagic/scrollmagic/minified/ScrollMagic.min.js" ></script>
	<script src="./js/animation.js"></script>
	
	
	</body>
</html>
              
            
!

CSS

              
                body {
	background: url('../images/bg.jpg') repeat top left;


}
section {
	position: absolute;
	bottom: 5%;
	left: 37%;
	
	width: 400px;
	height: auto;
	margin: 10px auto 0;
	
}
.main
{
	position: relative;

}
#slider{
	border-width: 1px;
	border-style: solid;
	border-color: #333 #333 #777 #333;
	border-radius: 25px;
	width: 400px;
	position: absolute;
	height: 13px;
	background-color: #8e8d8d;
	background: url('../images/bg-track.png') repeat top left;
    box-shadow: inset 0 1px 5px 0px rgba(0, 0, 0, .5), 
    				  0 1px 0 0px rgba(250, 250, 250, .5);
    
}
.tooltip {
	position: absolute;
	display: block;
	top: -25px;
	width: 35px;
	height: 20px;
	color: #fff;
	text-align: center;
	font: 10pt Tahoma, Arial, sans-serif ;
	border-radius: 3px;
	border: 1px solid #333;
    -webkit-box-shadow:  1px 1px 2px 0px rgba(0, 0, 0, .3);
    box-shadow:  1px 1px 2px 0px rgba(0, 0, 0, .3);
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	background: -moz-linear-gradient(top,  rgba(69,72,77,0.5) 0%, rgba(0,0,0,0.5) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(69,72,77,0.5)), color-stop(100%,rgba(0,0,0,0.5))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* IE10+ */
	background: linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8045484d', endColorstr='#80000000',GradientType=0 ); /* IE6-9 */
}
.volume {
	content: "";
	display: inline-block;
	width: 25px;
	height: 25px;
	right: -5px;
	background: url('../images/volume.png') no-repeat 0 -50px;
	position: absolute;
	margin-top: -5px;
}
.ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 25px;
	height: 25px;
	cursor: pointer;
	background: url('../images/handle.png') no-repeat 50% 50%;
	font-weight: bold;
	color: #1C94C4;
	outline: none;
	top: -7px;
	margin-left: -12px;
}
.ui-slider-range {
	background: #ffffff; /* Old browsers */
	background: -moz-linear-gradient(top,  #ffffff 0%, #eaeaea 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#eaeaea)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #f53 0%,#e32 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 0%,#eaeaea 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 0%,#eaeaea 100%); /* IE10+ */
	background: linear-gradient(top,  #ffffff 0%,#eaeaea 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 ); /* IE6-9 */
	position: absolute;
	border: 0;
	top: 0;
	height: 100%;
	border-radius: 25px;
}

#content{
	position: relative;
	width: auto;
	height: auto;
	margin-left: 2%;
	margin-right: 2%;
	margin-top: 2%;
	border: solid;
	border-style: solid;
	border:thin solid black;
	max-height: 500px;
	max-width: 96%;
	overflow: hidden;


}


/* Reusable column setup */
.col {
    border:0px solid rgba(0,0,0,0);
    float:left;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    -moz-background-clip:padding-box !important;
    -webkit-background-clip:padding-box !important;
    background-clip:padding-box !important;
}



    /* 1. 1 Column Grid 0px - 1079px 
    ----------------------------------------------------------------------------- 
    
    Span 1:    100%
    
    ----------------------------------------------------------------------------- */

    @media screen and (min-width: 0px) and (max-width: 1079px) {
        
        .col {
            margin-left:7%;
        	padding:0 1.5%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }
        
        
        /*
        Add your semantic classnames in alongside their corresponding spans here. e.g.
        
        .span_3,
        .my_semantic_class_name {
            ...
        }
        */
        
        .span_1 {
            margin-left:0;
            width:100%;
        }
    }

    /* 2. 1 Column Grid 1080px - Infinity 
    ----------------------------------------------------------------------------- 
    
    Span 1:    100%
    
    ----------------------------------------------------------------------------- */

    @media screen and (min-width: 1080px) {
        
        .col {
            margin-left:7%;
        	padding:0 2.5%;
        }
        
        .row .col:first-child {
            margin-left:0;
        }
        
        
        
        .span_1 {
            margin-left:0;
            width:100%;
        }
    }

#oval {
	width: 200px;
	height: 100px;
	background: red;
	-moz-border-radius: 100px / 50px;
	-webkit-border-radius: 100px / 50px;
	border-radius: 100px / 50px;
}
.oval {
	width: 20px;
	height: 10px;
	background: blue;
	-moz-border-radius: 100px / 50px;
	-webkit-border-radius: 100px / 50px;
	border-radius: 100px / 50px;
	z-index: 3;
}

#circle {
	width: 100px;
	height: 100px;
	background: red;
	-moz-border-radius: 50px;
	-webkit-border-radius: 50px;
	border-radius: 50px;
}
.S{
  width:90px;
  height:450px;
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  box-shadow: -5px 10px 10px rgba(0,0,0,0.2);
  text-align: center;
  font-family: 'Oswald', arial;
  font-size:40px;
  line-height: 450px;
  color:white;
  text-shadow: 0px 0px 10px white;
}

.container{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
}

#img{
  left:50%;  top:50%;  position:absolute;
  transform: translate(-50%,-50%);
  border-radius:50%;
  box-shadow:0px 0px 20px #FC5A5A , 0px 0px 80px orange;
  border:solid 4px rgba(160,210,0,0.3);
}

.circlewrapper{
  width: 50px;
  height: 50px;
  border-radius: 50%; 
  background:rgba(0,0,0,0.8);
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  overflow:hidden;
  border:solid 4px red;

 
  
  
}
.fixed{

	display: inline;
	position: absolute;
	top: 10%;
	left: 10%;
	z-index: 2;
}

.stick{

	position: fixed;
	top: 443;
	left: 500;
}
#visible-circle{
	position: relative;
	width: 70px;
	height: 70px;
	opacity: 0;
	z-index: 88;
	border: solid 3px green; 
	border-radius: 50%;
	background-color: green;
}

#map-canvas{
		position: absolute;
		width: 100%;
		height: 100%; 	
        background-color:grey;
        border solid green 3px;
  		
}
.blurit{
    
        opacity: 1;
}
              
            
!

JS

              
                	
	var slider = document.getElementById("slider");
   TweenLite.fromTo(slider,2,{opacity:0},{opacity:1,ease:Power2.easeOut});

			//Store frequently elements in variables
			var slider  = $('#slider'),
				tooltip = $('.tooltip');

			//Hide the Tooltip at first
			tooltip.hide();

			//Call the Slider
			slider.slider({
				//Config
				range: "min", 
				min: 1,
				max:100,
				step:1,
				value: 1,

				start: function(event,ui) {
				    tooltip.fadeIn('fast');

				},

				//Slider Event
				slide: function(event, ui) { //When the slider is sliding

					var value  = slider.slider('value'),
						volume = $('.volume');

					tooltip.css('left', value).text((ui.value / 100 ));  //Adjust the tooltip accordingly
								main_tl.progress((ui.value / 100) ).pause();
						if(value <= 5) { 
						//call animations here wow
						
					} 
					else if (value <= 25) {
						//call animations here wow
					} 
					else if (value <= 75) {
						//call animations here wow
					} 
					else {
						//call animations here wow
					};

				},

				stop: function(event,ui) {
				    tooltip.fadeOut('fast');
				},
			});


	function updateSlider() {
	slider.slider("value", 100-(tl.progress() * 100) ).pause();

}	



var child_tl = new TimelineMax({sreverse:false});
child_tl.to([".circlewrapper"],10,{width:1050,height:1050});

	var tl = new TimelineMax({reverse:true,delay:1,paused:true});
var S = $(".S");
TweenLite.set(".container",{perspective:700});
TweenLite.set(S,{rotationY:-90,transformOrigin:"60% 0% -250px",transformStyle:"preserve-3d"});





for ( var i = 0 ; i < S.length ; i++) 
{ 
  var NS = S.slice(i);
  if(i==S.length-1){ TweenLite.set(NS,{zIndex:-i})}
  tl.to(NS,0.05 * i,{rotationY:'+=18',z:5,backgroundColor:'hsla(0,96%,'+4*i+'%,1.00)'});
  tl.set(S[i],{boxShadow:' -7px 10px 40px black',z:0,backgroundColor:'hsla(0,96%,'+4*i+'%,1.00)'});
}

tl.from(S,0.1,{opacity:0,color:'rgba(0,0,0,0)'},0).to("#img",4,{opacity:0.3},0.25);
tl.to([".floor",".container"],0.1,{display:"none"});

function start(){

var S = $(".S");
TweenLite.set(".container",{perspective:700});
TweenLite.set(S,{rotationY:-90,transformOrigin:"60% 0% -250px",transformStyle:"preserve-3d"});

for ( var i = 0 ; i < S.length ; i++) 
{ 
  var NS = S.slice(i);
  if(i==S.length-1){ TweenLite.set(NS,{zIndex:-i})}
  TweenLite.to(NS,0.05 * i,{rotationY:'+=18',z:5,backgroundColor:'hsla(0,96%,'+4*i+'%,1.00)'});
  TweenLite.set(S[i],{boxShadow:' -7px 10px 40px black',z:0,backgroundColor:'hsla(0,96%,'+4*i+'%,1.00)'});
}

TweenLite.from(S,0.1,{opacity:0,color:'rgba(0,0,0,0)'},0).to("#img",4,{opacity:0.3},0.25);
}
///////////////////////////////////////////////////////////////////draggables///////////////////////////////////////////////////////////////
var $container=$("#");

function update() {
	Draggable.create(".draggable_users", {
		bounds:$container,
		edgeResistance:0.4,
		type:"x,y",
		throwProps:true,
    autoScroll:true,
		liveSnap:liveSnap,
		snap:{
			x: function(endValue) {
				return (snap || liveSnap) ? Math.round(endValue / gridWidth) * gridWidth : endValue;
			},
			y: function(endValue) {
				return (snap || liveSnap) ? Math.round(endValue / gridHeight) * gridHeight : endValue;
			}
		}
	});
}


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 var main_tl = new TimelineMax({onUpdate:updateSlider,paused:true});
main_tl.add(tl.reverse());
main_tl.add(child_tl.play());

///////////////////////////////////////masp/////////////////////////////////////////////////////////////////////////////////////////////////////////////


function initialize() {
        var mapCanvas = document.getElementById('map-canvas');
        var mapOptions = {
          center: new google.maps.LatLng(44.5403, -78.5463),
          zoom:19,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          disableDefaultUI: true,
          draggableCursor: 'url("./images/logo.png"),auto;',
          keyboardShortcuts:false,
          mapTypeControl:false,
          scrollwheel:false,
          tilt:40
        }
        var map = new google.maps.Map(mapCanvas, mapOptions)
      
      }
      google.maps.event.addDomListener(window, 'load', initialize);	
              
            
!
999px

Console