css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">

  <!-- Compiled and minified JavaScript -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
          
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
	
<link rel="stylesheet"
  href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">

<div id="parent">
	<div class = "animated slideInLeft" id="wide"><center>Hi.</center></div>
  <div class = "animated lightSpeedIn" id="narrow"><center>I'm Niva</center></div>
</div>
<div class = "juan">
<h2 class="rotate-text">
  <span>I'm a </span>
 <b class = "rotating"> <span class = "inside">
    One-Stop Shop<br>
    Music Player<br>
    Task Manager<br>
     Productivity App
  </span></b>
</h2>
	</div>

<br><br><br><br><br><br><br><br><br><br><br><br><br><br><div class = "parent">
	
<div class = "circle">
	</div>

<a href = "https://www.google.com" class = "glink"><div class = "r1c">
	</div></a>

<a href = "https://www.youtube.com" class = "ylink"><div class = "r2c">
	</div></a>

<a href = "https://www.facebook.com" class = "flink"><div class = "r3c">
	</div></a>

<a href = "https://www.amazon.com" class = "alink"><div class = "r4c">
	</div></a>

<div class = "r1l">
	</div>

<div class = "r2l">
	</div>

<div class = "r3l">
	</div>

<div class = "r4l">
	</div>
	
	</div>

<div class = "options">
	<p class = "setText">Settings</p> <hr>	<ol>
		<li class = "gChange">Google</li>
		<a class="gClick waves-effect waves-light btn">Change</a>
<button class = "gSave waves-effect waves-light  #ad1457 pink darken-3 btn">Done</button><input type = "text" class = "gtext">

		<li class = "aChange">Amazon</li><button class = "aClick waves-effect waves-light btn">Change</button>
		<button class = "aSave waves-effect waves-light #ad1457 pink darken-3 btn">Done</button><input type = text class = "atext">
		
		<li class = "yChange">Youtube</li><button class = "yClick waves-effect waves-light btn">Change</button>
		<button class = "ySave waves-effect waves-light #ad1457 pink darken-3 btn">Done</button><input type = text class = "ytext">
		
		<li class = "fChange">Facebook</li><button class = "fClick waves-effect waves-light btn">Change</button>
		<button class = "fSave waves-effect waves-light #ad1457 pink darken-3 btn">Done</button><input type = text class = "ftext">

		<li class = ""><p><button id="stop" class = "waves-effect waves-light btn">Stop</button>
			<button id="start" class = "waves-effect waves-light #ad1457 pink darken-3 btn">Start</button></p>
		
	<li class = "speedChange">Speed</li><button class = "speedClick waves-effect waves-light btn">Change</button>
		<button class = "speedSave waves-effect waves-light #ad1457 pink darken-3 btn">Done</button><input type = text class = "speedtext">
			
		</ol>

</div>

<br><br><br><br><br><br><br><br><br><br><br><br><br><br>

	<h2 class = "name">
~ Refath</h2>


            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Quicksand:500');

body{
	background-image:url(http://1.bp.blogspot.com/-cynjeO46IAM/UBUmNk0NnxI/AAAAAAAAAqg/jpqpb_LMn6U/s1600/tR2hW.jpg);
	background-repeat: no-repeat;
}

.circle, .r1c, .r2c, .r3c, .r4c{
	border: black 0px solid;
	width: 90px;
	height: 90px;
	border-radius: 90px;
	fill: lightred;
	
	position: absolute;
	margin: auto;
	
	background-size: 100px 100px;
	background-repeat: no-repeat;
	background-position: -5px -5px;

	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	transition: 0.1s ease-in-out;
}

.r1c, .r2c, .r3c, .r4c {
	animation: around 29.9s infinite ease-in; 	 
	animation-direction:reverse;
}

.r1c.off, .r2c.off, .r3c.off, .r4c.off {
	
   -ms-animation-play-state:paused;
   -o-animation-play-state:paused;
   -moz-animation-play-state:paused;
   -webkit-animation-play-state:paused;
  animation-play-state: paused;
}

.circle{
	background-image: url(https://media.giphy.com/media/Ry0QlB6DwmCZO/giphy.gif);
	background-position: -9px -9px;
}

.r1c:hover, .r2c:hover, .r3c:hover, .r4c:hover{
	width:108px;
	height: 108px;
	border-radius:108px;
	transition: 0.07s ease-in;
	background-size: 120px 120px;
	background-position: -5.4px -5.4px;
}

.r1c{	
	position: relative;
	overflow: hidden;
	
	top: 200px;
	background-image: url("http://icons.iconarchive.com/icons/xenatt/the-circle/512/App-Google-icon.png");
}

.r2c{
	top: -400px;
	background-image: url(https://www.shareicon.net/data/512x512/2015/09/30/109354_media_512x512.png);
}

.r3c{
	left: 400px;
	background-image: url(https://cdn.worldvectorlogo.com/logos/facebook-3.svg);
}

.r4c{
	right: 400px;
	background-image: url("https://lh3.googleusercontent.com/mIeBLLu8xOi-1bPbtRO_HYb5d1VchJDLDH4hebMO7R-GNOfueGDtHCKgPWFjwyCAORQ=w300");
}

.r1l, .r2l, .r3l, .r4l{
	border: white 1px solid;
	width: 0px;
	height: 90px;
	border-radius: 90px;
	fill: lightred;
	
	position: absolute;
	margin: auto;
	
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
}

.r1l{
	top: 200px;
}
.r2l{
	top: -200px;
}

.r3l{
	width: 90px;
	height: 0px;
	
	left: 200px;
}

.r4l{
	width: 90px;
	height: 0px;
	
	left: -200px;
}

.parent.off {
   -ms-animation-play-state:paused;
   -o-animation-play-state:paused;
   -moz-animation-play-state:paused;
   -webkit-animation-play-state:paused;
  animation-play-state: paused;
}

.parent {
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	animation: around ease;
	animation-duration:30s;
}


@keyframes around{
	0% {transform: rotate(0deg);}
	25%	{transform: rotate(90deg);}
	
	25% {transform: rotate(90deg);}
	50%	{transform: rotate(180deg);}
	
	50% {transform: rotate(180deg);}
	75%	{transform: rotate(270deg);}
	
	75% {transform: rotate(270deg);}
	100%	{transform: rotate(360deg);}
	}

#wide{
	color:white;
	font-size: 60px;
	font-family: 'Quicksand', sans-serif;
	flex: 0.5;
  background: lightblue;
	background-color:rgba(51,153,255,0.5);
}

#narrow{
	color:white;	
	font-size: 60px;
	flex: 0.5;
	font-family: 'Quicksand', sans-serif;
	
  background: lightblue;
	background-color:rgba(51,153,255,0.8);
}

.name{
	position: relative;
	right:-200px;
	font-size: 60px;
	font-family: 'Quicksand', sans-serif;
}
.rotate-text{
	color:white;	
	font-size: 60px;
	flex: 0.5;
	font-family: 'Quicksand', sans-serif;
	
  background: lightblue;
	background-color:rgba(51,153,255,0.8);
}

#parent {
  display: flex;
	background-color:red;
}

.juan {
	font: 40px/50px Arial;
	text-align:center;
};
.rotate-text {
display:inline-block;
background-color:lightgreen;
}

.rotating{
	float:right;
  overflow: hidden;
  position: relative;
  height: 60px;
}

.inside{
	display: inline-block;
  color: lightblue;
  position: relative;
  white-space: nowrap;
  top: 0px;
  left: 0;
  animation: move 5s;
  animation-iteration-count: infinite;
	animation-delay: 1s;
}

@keyframes move {
0%  { top: 0px; }
20% { top: -70px; }
40% { top: -135px; }
60% { top: -150px; }
80% { top: -200px; }
}

.name{
	color:white;
}

.options{
	width:400px;
	height:450px;
	color:white;
	padding:15px 10px 0px 5px;
	
	float:left;
	position: relative;
	top:-340px;
	left:20px;
	border: 0px lightblue solid;
	border-radius:20px;
}

.gtext, .atext, .ytext, .ftext{
	border-radius: 20px;
	background-color:rgba(255,255,255,0.5);
	border: 0px;
	width:140px;
	height:25px;
	color:white;
	font-family: 'Quicksand', sans-serif;
	font-size:20px;
}

li{
	padding:7px;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    height: 100%;
    overflow: auto;
}

button{
	fill:red;
}

.setText{
	text-align:center;
	font-size:20px;
}

button{
	color:red;
}
            
          
!
            
              
$(document).ready(function(){$('.gClick').click ( function(){
						$(".gtext").toggle('fast');
});

$('.aClick').click ( function(){
						$(".atext").toggle('fast');
});

$('.yClick').click ( function(){
						$(".ytext").toggle('fast');
});

$('.fClick').click ( function(){
						$(".ftext").toggle('fast');
});

$('.speedClick').click ( function(){
						$(".speedtext").toggle('fast');
});

      $(".gtext").keyup(function(){
          var newimg = $(this).val();
          $(".glink").attr("href", newimg);
				$('.gSave').click ( function(){
						$(".gChange").html(newimg);
  imageUrl="http://s2.googleusercontent.com/s2/favicons?domain_url="+newimg;
$('.r1c').css('background-image', 'url(' + imageUrl + ')');
				});
			});
	
}); 

      $(".ytext").keyup(function(){
          var newimg = $(this).val();
          $(".ylink").attr("href", newimg);
				$('.ySave').click ( function(){
						$(".yChange").html(newimg);
  imageUrl="http://s2.googleusercontent.com/s2/favicons?domain_url="+newimg;
$('.r2c').css('background-image', 'url(' + imageUrl + ')');});
     });

      $(".atext").keyup(function(){
          var newimg = $(this).val();
          $(".alink").attr("href", newimg);
				$('.aSave').click ( function(){
						$(".aChange").html(newimg);
  imageUrl="http://s2.googleusercontent.com/s2/favicons?domain_url="+newimg;
$('.r3c').css('background-image', 'url(' + imageUrl + ')');});
     });


      $(".ftext").keyup(function(){
          var newimg = $(this).val();
          $(".flink").attr("href", newimg);
				$('.fSave').click ( function(){
						$(".fChange").html(newimg);
  imageUrl="http://s2.googleusercontent.com/s2/favicons?domain_url="+newimg;
$('.r4c').css('background-image', 'url(' + imageUrl + ')');});
     });

/**$('.noRotate').click ( function(){
		function stopAnimation(".parent")
{
    $('.parent').css("-webkit-animation", "none");
    $('.parent').css("animation", "none");
}
});**/

(function( $ ) {
	$(function() {
		$( "#stop" ).click(function() {
			$( ".parent, .r1c, .r2c, .r3c, .r4c" ).addClass( "off" );
		});
		$( "#start" ).click(function() {
			$( ".parent, .r1c, .r2c, .r3c, .r4c"  ).removeClass( "off" );
		});
	});
})

    $(".speedtext").keyup(function() {
        var newimg = $(this).val();
        $(".parent").css("animation-duration", newimg);
        $(".speedSave").click(function() {
            $(".speedChange").html(newimg);
        });
    });

/*
$(".atext").keyup(function(){
          var newimg = $(this).val();
          $(".alink").attr("href", newimg);
				$('.aSave').click ( function(){
						$(".aChange").html(newimg);
  imageUrl="http://s2.googleusercontent.com/s2/favicons?domain_url="+newimg;
$('.r3c').css('background-image', 'url(' + imageUrl + ')');});
     });
		 */
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console