-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaagazbanner.html
79 lines (75 loc) · 1.85 KB
/
aagazbanner.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Bungee+Shade&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="./styling/animate.css">
<title>experiment</title>
<style>
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
@mixin center(){
transform: translate(-50%,-50%);
left:50%;
top:50%;
}
html{
width:100%;
height: 100%;
}
.content{
position:absolute;
@include center();
}
.title{
font-weight: 800;
color: transparent;
font-size:12vw;
background: url("./images/image3.jpg") center;
background-position:20% 50%;
-webkit-background-clip: text;
background-clip: text;
position:relative;
text-align:center;
line-height:40vw;
letter-spacing: 0px;
}
.aagazvisible{
background-image: url("./images/Sports_Marketing_Video2.gif");
background-size: cover;
margin: 0;
width: 100%;
height: 100%;
min-height: 48vw;
font-family: "Bungee Shade",cursive;
}
</style>
</head>
<body>
<div class="aagazvisible content container-fluid col-xs-12 ">
<div class="title animated fadeIn">AAGAZ</div>
</div>
<script>
$(document).ready(function(){
var mouseX, mouseY;
var ww = $( window ).width();
var wh = $( window ).height();
var traX, traY;
$(document).mousemove(function(e){
mouseX = e.pageX;
mouseY = e.pageY;
traX = ((4 * mouseX) / 570) + 20;
traY = ((4 * mouseY) / 570) + 50;
console.log(traX);
$(".title").css({"background-position": traX + "%" + traY + "%"});
});
});
</script>
</body>
</html>