Cd case open on click

Developer
Size
3,180 Kb
Views
2,024

How do I make an cd case open on click?

What is a cd case open on click? How do you make a cd case open on click? This script and codes were developed by Hafiz Fattah on 16 January 2023, Monday.

Cd case open on click Previews

Cd case open on click - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>cd case open on click</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="css/style.css" />
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() { $('.cover').click(function() { $('.cover').not(this).removeClass('buka'); $(this).addClass('buka tutup');	});	$(".play").click(function(){	$(this).addClass("notactive");	$("audio")[0].play();	});	$(".pause").click(function(){	$(".play").removeClass("notactive");	$("audio")[0].pause();	});
});
</script>
<div id="wrapper"> <audio id="audio" preload="auto"> <source src="https://ec-media.soundcloud.com/wipwFDpdzNAT.128.mp3?ff61182e3c2ecefa438cd02102d0e385713f0c1faf3b0339595664fd090de310b359a9274793c87d7b58357144a560045cd77d6e947128a80cf67388f0550ab0522497bf56&AWSAccessKeyId=AKIAJ4IAZE5EOI7PA7VQ&Expires=1377688412&Signature=Bmjm4rB7H5JGJKtqiV6tEFSX%2FOY%3D" ></source> </audio> <div class="cdcase"> <div class="cover"><img src="http://rcgoodmanblog.files.wordpress.com/2013/02/night-visions.jpg"></div> <div class="playlist">	<div class="panel">	<div class="play"></div> <div class="pause"></div>	<div class="download"></div>	<div class="share"></div> </div> </div>	<div class="spine"></div> </div> <div class="cdcase"> <div class="cover"><img src="http://caffeine-headache.net/blog3/fun-cover-12142.jpg" /></div> <div class="playlist">	<div class="panel">	<div class="play"></div> <div class="pause"></div>	<div class="download"></div>	<div class="share"></div> </div> </div>	<div class="spine"></div> </div> <div class="cdcase"> <div class="cover"><img src="http://sleevage.com/wp-content/uploads/2007/08/keane_under_the_iron_sun.jpg"></div> <div class="playlist"></div>	<div class="spine"></div> </div> <div class="cdcase"> <div class="cover"><img src="https://www.cptawesome.co.za/wp-content/uploads/2011/05/coldplay-cover-art400.jpg"></div> <div class="playlist"></div>	<div class="spine"></div> </div>
</div>
</body>
</html>
</body>
</html>

Cd case open on click - Script Codes CSS Codes

html { min-height: 100%; background: linear-gradient(hsla(210, 100%, 50%, 0.5),hsla(280, 100%, 40%, 0.5)), url(http://www.iphoneclan.com/artstudio/tutorials/engraved_basic/linen_texture.png); background-size:cover;
}
body { margin:0; padding:0;
}
#wrapper{	position:relative;	width:960px;	height:100%;	margin:100px auto;
}
.cdcase{	display: inline-block;	margin:50px 110px 0px 110px;	height: 206px;	perspective:900;	-webkit-perspective:900;	-moz-perspective:900;	-o-perspective:900;
}
.playlist{	height: 206px;	width: 230px;	background: rgba(0,0,0,0);	box-shadow: 0px 2px 10px 1px rgba(0,0,0,0.6), inset 0px 0px 20px 2px rgba(0,0,0,0.4), inset 0px 0px 5px 1px rgba(255,255,255,0.6), inset 0px 0px 0px 1px rgba(255,255,255,0.2);	-webkit-box-shadow:0px 2px 10px 1px rgba(0,0,0,0.6), inset 0px 0px 20px 2px rgba(0,0,0,0.4), inset 0px 0px 5px 1px rgba(255,255,255,0.6), inset 0px 0px 0px 1px rgba(255,255,255,0.2);	-moz-box-shadow:0px 2px 10px 1px rgba(0,0,0,0.6), inset 0px 0px 20px 2px rgba(0,0,0,0.4), inset 0px 0px 5px 1px rgba(255,255,255,0.6), inset 0px 0px 0px 1px rgba(255,255,255,0.2);	-o-box-shadow:0px 2px 10px 1px rgba(0,0,0,0.6), inset 0px 0px 20px 2px rgba(0,0,0,0.4), inset 0px 0px 5px 1px rgba(255,255,255,0.6), inset 0px 0px 0px 1px rgba(255,255,255,0.2);	z-index:0;
}
.cover{	height: 206px;	width: 460px;	z-index:10;	position:absolute;	left:-230px;	-webkit-transition:all 0.8s;	-moz-transition:all 0.8s;	-o-transition:all 0.8s;
}
.cover img{	position:absolute;	height: 197px;	margin-top:5px;	margin-left:260px;	border-radius:2px;	cursor:pointer;	background: rgba(0,0,0,0);	box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.7),inset 0px 0px 16px 2px rgba(0,0,0,0.1), inset 0px 0px 0px 1px rgba(255,255,255,0.3);
}
.spine {	height: 120px;	width: 15px;	background: -webkit-linear-gradient(rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.07) 100%);	box-shadow: 3px 0px 5px 0px rgba(0,0,0,0.23), inset 0px 0px 7px 0px rgba(0,0,0,0.22), inset 0px 0px 0px 1px rgba(255,255,255,0.22);	position: relative;	top: -160px;	left: 0;	border-radius: 0 15% 15% 0;	z-index: -1;
}
.panel{	width:50px;	height: 197px;	float:right;	margin-right:4px;	margin-top:5px;	display:inline-block;	background:#FFF;
}
.play,
.pause,
.download,
.share {	position:absolute;	cursor:pointer;	width:50px;	height:50px;
}
.play{	margin-top:30px;	background:url(http://www.4shared.com/download/MntI7tTf/play.jpg?tsid=20130828-111359-9c2c9300) no-repeat center center;	z-index:2;
}
.pause{	margin-top:30px;	background:url(http://www.4shared.com/download/2fKPjepj/pause.jpg?tsid=20130828-111333-ac241093) no-repeat center center;	z-index:1;
}
.download{	margin-top:80px;	background:url(http://www.4shared.com/download/Wsw7LGdq/download.jpg?tsid=20130828-111448-6a7c330f) no-repeat center center;
}
.share{	margin-top:130px;	background:url(http://www.4shared.com/download/NJykqr3A/share.jpg?tsid=20130828-111414-396b2c5b) no-repeat center center;
}
.tutup{	-webkit-animation: tutup 1s backwards;	-moz-animation: buka 1s forwards;	-o-animation: buka 1s forwards;
}
.buka{	z-index:3;	-webkit-animation: buka 1s forwards;	-moz-animation: buka 1s forwards;	-o-animation: buka 1s forwards;
}
.notactive{	display:none;
}
@-webkit-keyframes buka{ from{ -webkit-transform: rotateY(0deg);} to{ -webkit-transform: rotateY(-40deg);}
}
@-webkit-keyframes tutup{ from{ -webkit-transform: rotateY(-40deg);} to{ -webkit-transform: rotateY(0deg);}
}
@-moz-keyframes buka{ from{ -webkit-transform: rotateY(0deg);} to{ -webkit-transform: rotateY(-40deg);}
}
@-moz-keyframes tutup{ from{ -webkit-transform: rotateY(-40deg);} to{ -webkit-transform: rotateY(0deg);}
}
@-o-keyframes buka{ from{ -webkit-transform: rotateY(0deg);} to{ -webkit-transform: rotateY(-40deg);}
}
@-o-keyframes tutup{ from{ -webkit-transform: rotateY(-40deg);} to{ -webkit-transform: rotateY(0deg);}
}
Cd case open on click - Script Codes
Cd case open on click - Script Codes
Home Page Home
Developer Hafiz Fattah
Username hafizfattah
Uploaded January 16, 2023
Rating 3
Size 3,180 Kb
Views 2,024
Do you need developer help for Cd case open on click?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Hafiz Fattah (hafizfattah) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!