LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
BURGER

The Humble Hamburger A hamburger (also called a beef burger, hamburger sandwich, burger, hamburg, cheeseburger) is a sandwich consisting of one or more cooked patties of ground meat, usually beef, placed inside a sliced bun.

Hamburgers are often served with lettuce, bacon, tomato, onion, pickles, cheese and condiments such as mustard, mayonnaise, ketchup, relish, and green chile.

PIZZA

The Fantastic Pizza Pizza is an oven-baked flat bread generally topped with tomato sauce and cheese. It is commonly supplemented with a selection of meats, vegetables and condiments.

The term was first recorded in the 10th century, in a Latin manuscript from Gaeta in Central Italy.
The modern pizza was invented in Naples, Italy, and the dish and its variants have since become popular in many areas of the world.

SOUP

The Hangover Curing Soup Soup is a primarily liquid food, generally served warm (but may be cool or cold), that is made by combining ingredients such as meat and vegetables with stock, juice, water, or another liquid.

Hot soups are additionally characterized by boiling solid ingredients in liquids in a pot until the flavors are extracted, forming a broth.

HOT DOG

The Weiner With Ketchup A hot dog (also spelled hotdog) is a cooked sausage, traditionally grilled or steamed and served in a sliced bun as a sandwich.

Hot dog variants include the corn dog dipped in corn batter and deep fried, pigs in blankets wrapped in dough, baked, and served as hors d'oeuvres, and Beanie Weenies chopped and mixed with baked beans.
Typical hot dog garnishes include mustard, ketchup, onions, mayonnaise, relish, cheese, chili, and sauerkraut.

CSS
body {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  cursor: default;
  background: url(http://128.199.49.84/codepen/fullScreen/bg.jpg) center center repeat;
}

.fullScreenExpand .phoneFrame 			{ background:url(http://128.199.49.84/codepen/fullScreen/phoneFrame.png) no-repeat; background-size:100%; width: 382px; height: 701px; position: relative; margin:50px auto; padding-top:97px;}
.fullScreenExpand .screenRap 			{ width: 335px; height: 595px; background:#EEE; overflow: hidden; position: relative; margin-left: 24px; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; -o-user-select: none;}
.fullScreenExpand .screenRap div 		{ width: 100%; height: 150px; position: relative; color: #fff; transition: all .5s cubic-bezier(0.59, 0, 0, 1.01); -moz-transition: all .5s cubic-bezier(0.59, 0, 0, 1.01); -webkit-transition: all .5s cubic-bezier(0.59, 0, 0, 1.01); transform: scale(.95, .95); cursor:pointer;}
.fullScreenExpand .screenRap div span 				{ width: 156px; font-size: 16px; font-weight: 700; letter-spacing: 5px; display: block; padding:65px 0 56px 115px; position: absolute; top: 0; opacity: 0; transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01); -moz-transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01); -webkit-transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01);}
.fullScreenExpand .screenRap div.active 			{ height: 100%;}
.fullScreenExpand .screenRap div.active span, .fullScreenExpand .screenRap div.active svg 		{ position: absolute; top: 60px; opacity: 0 !important; transform: scale(0, 0);}
	.fullScreenExpand .screenRap div.active svg 	{ top:70px; margin-left:80px;}

.fullScreenExpand .screenRap div a 					{ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAaCAYAAACHD21cAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNT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ORK5CYII=') no-repeat; width: 14px; height: 26px; position: absolute; top: 15px; left: -50px; opacity: 0; transition: all .6s; -moz-transition: all .6s; -webkit-transition: all .6s; cursor: pointer; padding: 5px;}
.fullScreenExpand .screenRap div.active a 			{ opacity: 1; left: 18px;}
.fullScreenExpand .screenRap div p img 				{ margin: 55px 0 100px 0; display:inline !important; transition: margin .7s; -webkit-transition: margin .7s; -moz-transition: margin .7s;}
.fullScreenExpand .screenRap div.active p img 		{ margin: 25px 0;}
.fullScreenExpand .screenRap div p 					{ position: absolute; top: 150px; left: 0; height: 100%; width: 100%; text-align: center; opacity: 0; transition: top .4s, opacity .8s, filter .5s; -moz-transition: top .4s, opacity .8s, -moz-filter .5s; -webkit-transition: top .4s, opacity .8s, -webkit-filter .5s; -webkit-filter: blur(10px); font-size: 15px; line-height: 1.8; font-family: 'Roboto', sans-serif;}
.fullScreenExpand .screenRap div.active p 			{ opacity: 1; top: 0; -webkit-filter: blur(0px); -moz-filter: blur(0px); filter: blur(0px);}
.fullScreenExpand .screenRap div p b 				{ font-weight: 400; padding: 0 20px; display: block; text-align: left !important;}
.fullScreenExpand .screenRap div i 					{ display: block; text-align: center; margin-bottom: 20px; font-size: 18px; font-style: normal; font-weight: 300; line-height: 1.3; font-family: 'Roboto', sans-serif; font-weight: 700;}

.fullScreenExpand .burger 							{ background: #f3bb72; top: 510px; position: relative; z-index: 1; animation: containerSlideUp .8s 1s forwards; -moz-animation: containerSlideUp .8s 1s forwards; -webkit-animation: containerSlideUp .8s 1s forwards;}
.fullScreenExpand .burger span 						{  animation: btnsSlide .6s 2s forwards; -moz-animation: btnsSlide .6s 2s forwards; -webkit-animation: btnsSlide .6s 2s forwards;}
.fullScreenExpand .burger svg						{ animation: btnsSlide .6s 2.1s forwards; -moz-animation: btnsSlide .6s 2.1s forwards; -webkit-animation: btnsSlide .6s 2.1s forwards; margin:-32px 0 0 9px; width: 72px !important;}

.fullScreenExpand .pizza 					{ background:#ff85a7; top: 380px; position: relative; z-index: 2; animation: containerSlideUp .8s 1s forwards; -moz-animation: containerSlideUp .8s 1s forwards; -webkit-animation: containerSlideUp .8s 1s forwards;}
.pizza span { animation: btnsSlide .6s 1.9s forwards; -moz-animation: btnsSlide .6s 1.9s forwards; -webkitanimation: btnsSlide .6s 1.9s forwards;}
.fullScreenExpand .pizza.active 			{ margin-top: -150px;}
.fullScreenExpand .pizza svg					{ animation: btnsSlide .6s 2s forwards; -moz-animation: btnsSlide .6s 2s forwards; -webkit-animation: btnsSlide .6s 2s forwards; margin:-32px 0 0 9px; width: 72px !important;}

.fullScreenExpand .soup { background: #61e5e6; top: 250px; position: relative; z-index: 3; animation: containerSlideUp .8s 1s forwards; -moz-animation: containerSlideUp .8s 1s forwards; -webkit-animation: containerSlideUp .8s 1s forwards;}
.fullScreenExpand .soup span 				{ animation: btnsSlide .6s 2.1s forwards; -moz-animation: btnsSlide .6s 2.1s forwards; -webkit-animation: btnsSlide .6s 2.1s forwards;}
.fullScreenExpand .soup.active 				{ margin-top: -300px;}
.fullScreenExpand .soup svg					{ animation: btnsSlide .6s 2.2s forwards; -moz-animation: btnsSlide .6s 2.2s forwards; -webkit-animation: btnsSlide .6s 2.2s forwards; margin:-26px 0 0 9px; width: 72px !important;}

.fullScreenExpand .hotDog 					{ background:#b1db73; top: 120px; position: relative; z-index: 4; animation: containerSlideUp .8s 1s forwards; -moz-animation: containerSlideUp .8s 1s forwards; -webkit-animation: containerSlideUp .8s 1s forwards;}

.fullScreenExpand .screenRap svg				{ position: absolute; top: 50%; opacity: 0; transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01); -moz-transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01); -webkit-transition: all .5s, opacity .1s cubic-bezier(1, -0.02, 0, 1.01); fill:#fff; width:90px;}

.fullScreenExpand .hotDog svg				{ animation: btnsSlide .6s 2.3s forwards; -webkit-animation: btnsSlide .6s 2.3s forwards; -moz-animation: btnsSlide .6s 2.3s forwards; margin-top:-18.5px;}
.fullScreenExpand .hotDog span 				{ animation: btnsSlide .6s 2.2s forwards; -webkit-animation: btnsSlide .6s 2.2s forwards; -moz-animation: btnsSlide .6s 2.2s forwards;}
.fullScreenExpand .hotDog.active 			{ margin-top: -450px;}

@keyframes containerSlideUp {
  0% {
    transform: scale(.95, .95);
  }
  50% {
    top: -7px;
    transform: scale(1, 1);
  }
  100% {
    top: 0;
    transform: scale(1, 1);
  }
}

@-moz-keyframes containerSlideUp {
  0% {
    -moz-transform: scale(.95, .95);
  }
  50% {
    top: -7px;
    -moz-transform: scale(1, 1);
  }
  100% {
    top: 0;
    -moz-transform: scale(1, 1);
  }
}

@-webkit-keyframes containerSlideUp {
  0% {
    -webkit-transform: scale(.95, .95);
  }
  50% {
    top: -7px;
    -webkit-transform: scale(1, 1);
  }
  100% {
    top: 0;
    -webkit-transform: scale(1, 1);
  }
}

@keyframes btnsSlide {
  0% {
    left: -100px;
  }
  100% {
    left: 40px;
    opacity: 1;
  }
}

@-moz-keyframes btnsSlide {
  0% {
    left: -100px;
  }
  100% {
    left: 40px;
    opacity: 1;
  }
}

@k-webkit-eyframes btnsSlide {
  0% {
    left: -100px;
  }
  100% {
    left: 40px;
    opacity: 1;
  }
}

JS
$('.screenRap div span').click(function() {
  $(this).parent().addClass('active');
});
$('.screenRap div a').click(function() {
  $(this).parent().parent().removeClass('active');
});
Host Instantly Drag and Drop Website Builder

 

Description

Here's an awesome concept of expanding content from a short list I made using simple js and css transitions, the key here is the timming of elements that move into transition.
Term
Mon, 11/27/2017 - 22:00

Related Codes

Pen ID
Pen ID
Pen ID