Optical Glass

Developer
Size
2,660 Kb
Views
28,336

How do I make an optical glass?

Optical Glass - Made with CSS3, HAML and JavaScript. What is a optical glass? How do you make a optical glass? This script and codes were developed by Vahid on 16 September 2022, Friday.

Optical Glass Previews

Optical Glass - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Optical Glass</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='main'> <div id='over'></div> <div class='q'> <div> <p>You read the Bible?</p> </div> </div>
</div> <script src="js/index.js"></script>
</body>
</html>

Optical Glass - Script Codes CSS Codes

@import url('https://fonts.googleapis.com/css?family=Telex');
*, *:after, *:before {	margin: 0;	padding: 0;	-webkit-box-sizing: border-box;	-moz-box-sizing: border-box;	box-sizing: border-box;
}
body, html {	width: 100%;	height: 100%;	margin: 0;	padding: 0;
}
body {	font-family: 'Telex';	overflow: hidden;	background: #aab4a5;
}
#main {	position: relative;	width: 90%;	height: 90%;	left: 5%;	top: 5%;	border: 10px solid #4e8a4e;	-webkit-border-radius: 25px;	-moz-border-radius: 25px;	border-radius: 25px;	background-color: #444444;	background-attachment: fixed;	background-image: url(https://addb8f053b96eb264ad3daffd8fdb55b4f27af61.googledrive.com/host/0B-0uZjFdGZ8KalphOHZtdFhLMlU/bw.jpg);	-webkit-background-size: cover;	-moz-background-size: cover;	-o-background-size: cover;	background-size: cover;	-webkit-box-shadow: 2px 2px 5px 2px #444444;	-moz-box-shadow: 2px 2px 5px 2px #444444;	-o-box-shadow: 2px 2px 5px 2px #444444;	box-shadow: 2px 2px 5px 2px #444444;	overflow: hidden;	cursor: none;
}
#over {	width: 270px;	height: 270px;	top: 10%;	left: 60%;	border: 3px solid transparent;	-webkit-border-radius: 50%;	-moz-border-radius: 50%;	border-radius: 50%;	background-attachment: fixed;	-webkit-background-size: cover;	-moz-background-size: cover;	-o-background-size: cover;	background-size: cover;	position: absolute;	-webkit-box-shadow: inset 0px 0px 45px 5px #888888;	-moz-box-shadow: inset 0px 0px 45px 5px #888888;	-o-box-shadow: inset 0px 0px 45px 5px #888888;	box-shadow: inset 0px 0px 45px 5px #888888;	background-image: url(https://addb8f053b96eb264ad3daffd8fdb55b4f27af61.googledrive.com/host/0B-0uZjFdGZ8KalphOHZtdFhLMlU/rgb.jpg);	z-index: 0;
}
.q {	position: absolute;	width: 300px;	height: 100px;	left: 50%;	top: 50%;	display: table;	margin-top: -50px;	margin-left: -150px;	padding: 5px;	border: 12px rgba(226, 217, 199, 0.30) solid;	-webkit-border-radius: 5px;	-moz-border-radius: 5px;	border-radius: 5px;	-webkit-box-shadow: 1px 1px 8px #ababab;	-moz-box-shadow: 1px 1px 8px #ababab;	-o-box-shadow: 1px 1px 8px #ababab;	box-shadow: 1px 1px 8px #ababab;	z-index: 1;
}
.q > div {	display: table-cell;	vertical-align: middle;
}
.q > div > p {	color: #ffffff;	font-family: 'Telex';	text-align: center;	font-size: 20px;	text-shadow: 1px 1px 3px #999999;
}

Optical Glass - Script Codes JS Codes

window.onload = function () {	var container = document.getElementById ( 'main' );	document.onmousemove = function ( event ) {	event = event || window.event;	var x = event.clientX - container.offsetLeft,	y = event.clientY - container.offsetTop;	followXY ( 'over', x, y );	}
}
function followXY ( id, x, y ) {	var obj = document.getElementById ( id );	obj.style.left = x - parseInt( obj.offsetWidth ) / 2 + 'px';	obj.style.top = y - parseInt( obj.offsetHeight ) / 2 + 'px';
}
Optical Glass - Script Codes
Optical Glass - Script Codes
Home Page Home
Developer Vahid
Username vahidseo
Uploaded September 16, 2022
Rating 3
Size 2,660 Kb
Views 28,336
Do you need developer help for Optical Glass?

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!

Vahid (vahidseo) 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!