-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
33 lines (28 loc) · 1.15 KB
/
index.js
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
$( document ).ready(function() {
const container = document.querySelector('.imagecontain');
const subcontainer = document.querySelector('.sub-container');
const bannerimage = document.querySelector('.image');
const paragraph = document.querySelector('.paragraph');
const heading = document.querySelector('.heading');
container.addEventListener('mouseenter', (e) => {
subcontainer.style.transition = 'none';
bannerimage.style.transform = 'translateZ(150px)';
});
container.addEventListener('mouseleave', (e) => {
subcontainer.style.transition = 'all 0.5s ease';
subcontainer.style.transform = `rotateX(0deg) rotateY(0deg)`
bannerimage.style.transform = 'translateZ(0px)';
});
});
function contactMe() {
subject = $("#subject").val()
message = $("#message").val()
mailFrom = $("#name").val()
var link = "mailto:parton1999@yahoo.com"
+ "&subject=" + encodeURIComponent(subject + " : " + mailFrom)
+ "&body=" + encodeURIComponent(message);
window.location.href = link;
subject = $("#subject").val('')
message = $("#message").val('')
mailFrom = $("#name").val('')
};