GTA 5 CSS3 Parallax
How do I make an gta 5 css3 parallax?
Knockout and CSS3 3D transforms to create a parallax effect.. What is a gta 5 css3 parallax? How do you make a gta 5 css3 parallax? This script and codes were developed by Maheshc on 28 November 2022, Monday.
GTA 5 CSS3 Parallax - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>GTA 5 CSS3 Parallax</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='banner'> <div id="parallxWrapper">
<div class="parallxBackground" data-bind="attr: { style:'-webkit-transform:perspective(1000px) rotateY(' + relativeMouse.x() + 'deg) rotateX(' + relativeMouse.y() + 'deg);transform:perspective(1000px) rotateY(' + relativeMouse.x() + 'deg) rotateX(' + relativeMouse.y() + 'deg)' }"> <div class="parallxLayerLogo"></div> <div class="parallxLayerRStar"></div> <div class="parallxLayerShooter"></div> </div> </div> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/knockout/2.3.0/knockout-min.js'></script> <script src="js/index.js"></script>
</body>
</html>
GTA 5 CSS3 Parallax - Script Codes CSS Codes
#parallxWrapper { margin:auto; height:540px; width:1000px; } .parallxBackground { height:100%; background-image:url("https://i.imgur.com/GSqh8aA.jpg"); border-radius:10px; padding:10px; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } .parallxLayerLogo { width:300px; height:225px; margin-top:50px; margin-left:50px; background-image:url("https://i.imgur.com/9A9KbR8.png"); position:absolute; -webkit-transform:translateZ(90px); -webkit-transition: all 0.2s; transform:translateZ(90px); transition: all 0.2s; } .parallxLayer:hover { -webkit-transform:scale(1.05); -webkit-transform:translateZ(30px); transform:scale(1.05); transform:translateZ(30px); cursor:pointer; } .parallxLayerRStar{ width:100px; height:90px; margin-left:880px; margin-top:450px; float:right; background-image:url("https://i.imgur.com/Mh37eRt.png"); position:absolute; -webkit-transform:translateZ(20px); transform:translateZ(20px); } .parallxLayerShooter{ width:1000px; height:694px; float:right; background-image:url("https://i.imgur.com/YWCpfik.png"); position:absolute; -webkit-transform:translateZ(50px); transform:translateZ(50px); } .parallxLayerRStar:hover { -webkit-transform:scale(1.05); -webkit-transform:translateZ(30px); transform:scale(1.05); transform:translateZ(30px); cursor:pointer; }
h2, .h2 { font-size: 30px;
}
h1, h2, h3 { margin-bottom: 10px; margin-top: 20px;
}
.lead { font-weight: 200; line-height: 1.4; margin-bottom: 20px;
}
body { color: #333333; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.col-md-8 { min-height: 1px; padding-left: 15px; padding-right: 15px;
}
GTA 5 CSS3 Parallax - Script Codes JS Codes
var parallx = null;
var demoCount = 0; function Parallx() { var self = this; $("body").mousemove(function(e) { parallax.mouseX(e.pageX); parallax.mouseY(e.pageY); }); self.sensitivityMultiplier = ko.observable(0.03); self.wrapperOffset = $('#parallxWrapper').offset(); self.wrapperCenter = { x:ko.computed(function() { return self.wrapperOffset.left + ($('#parallxWrapper').width()/2) }, this), y:ko.computed(function() { return self.wrapperOffset.top + ($('#parallxWrapper').height()/2) }, this) }; self.mouseX = ko.observable(0); self.mouseY = ko.observable(0); self.relativeMouse = { x:ko.computed(function() { return (self.mouseX() - self.wrapperCenter.x()) * self.sensitivityMultiplier() }, this), y:ko.computed(function() { return ((self.mouseY() - self.wrapperCenter.y()) * -1) * self.sensitivityMultiplier()}, this) }; self.origin = { x:ko.computed(function() { return ((self.mouseX())/$( window ).width()) * 100 }, this), y:ko.computed(function() { return ((self.mouseY())/$( window ).height()) * 100 }, this) }; }; $(document).ready(function() { parallax = new Parallx(); ko.applyBindings(parallax); setInterval(function() { if(demoCount < 130){ parallax.mouseX(parallax.mouseX() + 10); demoCount+=1; } }, 40); });
Developer | Maheshc |
Username | maheshc |
Uploaded | November 28, 2022 |
Rating | 3 |
Size | 2,754 Kb |
Views | 54,648 |
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!
Name | Size |
Sequence.js - Sliding Horizontal Parallax | 4,537 Kb |
Parallax scrolling background | 3,398 Kb |
CSS 3D Solar System | 251,376 Kb |
A Pen by maheshc | 2,586 Kb |
Animated scroll-dependant menu using scrollMonitor | 2,748 Kb |
Simplest Parallax effect ever. | 1,900 Kb |
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!
Name | Username | Size |
Impress JS Algorhytmic Generator | Jeffscottward | 7,906 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
JQuery Validate checkbox group | Lunaman | 2,466 Kb |
GsuiPopup | Mr21 | 2,641 Kb |
AngularJS Animated Todo List | Ehaase | 2,975 Kb |
Find The Penguin | Lelder | 2,212 Kb |
Nav Test -- cats 1 | Payls | 4,735 Kb |
Countdown with Rings | Ewganoel | 2,490 Kb |
Basic HTML Slideshow | Tomhodgins | 3,386 Kb |
Cake | Kennyname | 7,220 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!