ryanforprez
Coder
Hello, so I have been running into an issue, I am still kind of a newbie and I have a custom cursor on my site but for some reason when I hover over my "projects" div class column-two the links do not work. they work with my name and information and contact info but not the projects and not sure why. If someone could help this would be amazing. I have tried putting the z-index up on that column or down on the cursor but then one just hides from the other.
[CODE lang="css" title="CSS" highlight="132, 162"]html {
scroll-snap-type: mandatory;
scroll-snap-points-y: repeat(100vh);
scroll-snap-type: y mandatory;
font-weight: normal;
webkit-overflow-scrolling: touch;
padding: 0;
margin: 0;
}
body {
scroll-snap-type: mandatory;
scroll-snap-points-y: repeat(100vh);
scroll-snap-type: y mandatory;
font-weight: normal;
webkit-overflow-scrolling: touch;
padding: 0;
margin: 0;
font-family: Sans;
background-color: black;
max-width: 10000px;
}
nav {
display: flex;
mix-blend-mode: exclusion;
font-family: Sans;
padding: 5px;
}
.name {
flex: 1;
width: 15%;
position: fixed;
padding-left: 10px;
color: white;
mix-blend-mode: exclusion;
padding-top: 10px;
z-index: 999;
}
.info {
flex: 1;
width: 15%;
position: fixed;
padding-left: 33.1%;
color: white;
mix-blend-mode: exclusion;
padding-top: 10px;
text-align: left;
z-index: 99;
}
a {
text-decoration: none;
color: white;
font-size: 25px;
}
.stage {
animation: animateBg 20s linear infinite;
background-image: linear-gradient(0deg,#0000ff,#ff00ff,#ffffff,#ffff00,#ff0000,#000000,#0000ff,#ff00ff,#ffffff,#ffff00,#ff0000,#000000);
background-size: 100% 1100%;
height: 100vh;
width: 100vw;
}
@keyframes animateBg {
0% { background-position: 0% 0%; }
100% { background-position: 0% 100%; }
}
marquee{
font-size: 124px;
letter-spacing: .35px;
font-family: Sans;
z-index: 10;
color: white;
position: absolute;
mix-blend-mode: exclusion;
bottom: 30px;
}
h1 {
align-content: center;
height: auto;
z-index: 10;
font-size: 124px;
text-align: center;
color: white;
}
.clickNav {
display: flex;
flex-wrap: wrap;
font-size: 24px;
position: fixed;
bottom: 0;
padding-bottom: 10px;
letter-spacing: .35px;
width: 100%;
font-family: Sans;
mix-blend-mode: exclusion;
}
.contact {
position: fixed;
bottom: 9px;
padding-left: 10px;
mix-blend-mode: exclusion;
z-index: 99;
}
.contact2 {
position: fixed;
bottom: 9px;
padding-left: 80px;
mix-blend-mode: exclusion;
z-index: 98;
}
.cursor {
position: fixed;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #ffff;
mix-blend-mode: difference;
z-index: 1;
}
html,
* {cursor: none;
z-index: -1;
}
.column {
width:66%;
flex: 2;
padding-left: 33%;
padding-top: 6%;
font-size: 25px;
line-height: 45px;
font-family: Sans;
letter-spacing: 1px;
padding-bottom: 1px;
margin-bottom: 1px;
}
.column-two {
width:66%;
flex: 1;
padding-left: 33%;
padding-top: 3%;
letter-spacing: 1px;
padding-bottom: 1px;
margin-bottom: 1px;
max-width: 1500px;
}
[/CODE]
[CODE lang="html" title="HTML" highlight="21-36"]<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<html>
<body>
<div class="cursor"></div>
<div class="nav">
<div class="name"><a href="work.html">Ryan Stewart</a></div>
<div class="info"><a href="information.html">Information</a></div>
</div>
<div class="contact"> <a href="https://www.instagram.com/ryanforprez/">Instagram</a><br><a href="https://www.are.na/ryan-stewart">Are.na</a>
</div>
<br><br>
<div class="column-layout">
<div class="column-two">
<a href="beansans.html"><img src="Images/Asset%2029.jpg" alt="Bean Sans" style="max-width:100%;height:auto;"></a>
<a href="alyx.html"><img src="Images/alyx1.jpg" alt="ALYX" style="max-width:100%;height:auto;"></a>
<div><a href="cassette.html"><img src="Images/cass-02%20copy.png" alt="Cassettes" style="max-width:100%;height:auto;"></a></div>
<div><a href="lookat.html"><img src="Images/lookat-this2.gif" alt="Look at This Photograph" style="max-width:100%;height:auto;"></a></div>
<a href="popper.html"><img src="Images/pillpopcovermock%202.jpg" alt="Pill Popper" style="max-width:100%;height:auto;"></a>
<a href="canyon.html"><img src="Images/arenamock-Recoverevd.jpg" alt="Canyon Daze" style="max-width:100%;height:auto;"></a>
<a href="mutiny.html"><img src="Images/ring-01.png" alt="Mutiny" style="max-width:100%;height:auto;"></a>
<a href="tendencies.html"><img src="Images/22.jpg" alt="Tendencies" style="max-width:100%;height:auto;"></a>
</div>
</div>
</body>
</html>
<script>$(document).ready(function() {
var cursor = $(".cursor");
$(window).mousemove(function(e) {
cursor.css({
top: e.clientY - cursor.height() / 2,
left: e.clientX - cursor.width() / 2
});
});
$(window)
.mouseleave(function() {
cursor.css({
opacity: "0"
});
})
.mouseenter(function() {
cursor.css({
opacity: "1"
});
});
});</script>
[/CODE]
Thank you. Also attaching codepen here: https://codepen.io/ryanforprez/pen/RwoNxJJ
[CODE lang="css" title="CSS" highlight="132, 162"]html {
scroll-snap-type: mandatory;
scroll-snap-points-y: repeat(100vh);
scroll-snap-type: y mandatory;
font-weight: normal;
webkit-overflow-scrolling: touch;
padding: 0;
margin: 0;
}
body {
scroll-snap-type: mandatory;
scroll-snap-points-y: repeat(100vh);
scroll-snap-type: y mandatory;
font-weight: normal;
webkit-overflow-scrolling: touch;
padding: 0;
margin: 0;
font-family: Sans;
background-color: black;
max-width: 10000px;
}
nav {
display: flex;
mix-blend-mode: exclusion;
font-family: Sans;
padding: 5px;
}
.name {
flex: 1;
width: 15%;
position: fixed;
padding-left: 10px;
color: white;
mix-blend-mode: exclusion;
padding-top: 10px;
z-index: 999;
}
.info {
flex: 1;
width: 15%;
position: fixed;
padding-left: 33.1%;
color: white;
mix-blend-mode: exclusion;
padding-top: 10px;
text-align: left;
z-index: 99;
}
a {
text-decoration: none;
color: white;
font-size: 25px;
}
.stage {
animation: animateBg 20s linear infinite;
background-image: linear-gradient(0deg,#0000ff,#ff00ff,#ffffff,#ffff00,#ff0000,#000000,#0000ff,#ff00ff,#ffffff,#ffff00,#ff0000,#000000);
background-size: 100% 1100%;
height: 100vh;
width: 100vw;
}
@keyframes animateBg {
0% { background-position: 0% 0%; }
100% { background-position: 0% 100%; }
}
marquee{
font-size: 124px;
letter-spacing: .35px;
font-family: Sans;
z-index: 10;
color: white;
position: absolute;
mix-blend-mode: exclusion;
bottom: 30px;
}
h1 {
align-content: center;
height: auto;
z-index: 10;
font-size: 124px;
text-align: center;
color: white;
}
.clickNav {
display: flex;
flex-wrap: wrap;
font-size: 24px;
position: fixed;
bottom: 0;
padding-bottom: 10px;
letter-spacing: .35px;
width: 100%;
font-family: Sans;
mix-blend-mode: exclusion;
}
.contact {
position: fixed;
bottom: 9px;
padding-left: 10px;
mix-blend-mode: exclusion;
z-index: 99;
}
.contact2 {
position: fixed;
bottom: 9px;
padding-left: 80px;
mix-blend-mode: exclusion;
z-index: 98;
}
.cursor {
position: fixed;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #ffff;
mix-blend-mode: difference;
z-index: 1;
}
html,
* {cursor: none;
z-index: -1;
}
.column {
width:66%;
flex: 2;
padding-left: 33%;
padding-top: 6%;
font-size: 25px;
line-height: 45px;
font-family: Sans;
letter-spacing: 1px;
padding-bottom: 1px;
margin-bottom: 1px;
}
.column-two {
width:66%;
flex: 1;
padding-left: 33%;
padding-top: 3%;
letter-spacing: 1px;
padding-bottom: 1px;
margin-bottom: 1px;
max-width: 1500px;
}
[/CODE]
[CODE lang="html" title="HTML" highlight="21-36"]<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<html>
<body>
<div class="cursor"></div>
<div class="nav">
<div class="name"><a href="work.html">Ryan Stewart</a></div>
<div class="info"><a href="information.html">Information</a></div>
</div>
<div class="contact"> <a href="https://www.instagram.com/ryanforprez/">Instagram</a><br><a href="https://www.are.na/ryan-stewart">Are.na</a>
</div>
<br><br>
<div class="column-layout">
<div class="column-two">
<a href="beansans.html"><img src="Images/Asset%2029.jpg" alt="Bean Sans" style="max-width:100%;height:auto;"></a>
<a href="alyx.html"><img src="Images/alyx1.jpg" alt="ALYX" style="max-width:100%;height:auto;"></a>
<div><a href="cassette.html"><img src="Images/cass-02%20copy.png" alt="Cassettes" style="max-width:100%;height:auto;"></a></div>
<div><a href="lookat.html"><img src="Images/lookat-this2.gif" alt="Look at This Photograph" style="max-width:100%;height:auto;"></a></div>
<a href="popper.html"><img src="Images/pillpopcovermock%202.jpg" alt="Pill Popper" style="max-width:100%;height:auto;"></a>
<a href="canyon.html"><img src="Images/arenamock-Recoverevd.jpg" alt="Canyon Daze" style="max-width:100%;height:auto;"></a>
<a href="mutiny.html"><img src="Images/ring-01.png" alt="Mutiny" style="max-width:100%;height:auto;"></a>
<a href="tendencies.html"><img src="Images/22.jpg" alt="Tendencies" style="max-width:100%;height:auto;"></a>
</div>
</div>
</body>
</html>
<script>$(document).ready(function() {
var cursor = $(".cursor");
$(window).mousemove(function(e) {
cursor.css({
top: e.clientY - cursor.height() / 2,
left: e.clientX - cursor.width() / 2
});
});
$(window)
.mouseleave(function() {
cursor.css({
opacity: "0"
});
})
.mouseenter(function() {
cursor.css({
opacity: "1"
});
});
});</script>
[/CODE]
Thank you. Also attaching codepen here: https://codepen.io/ryanforprez/pen/RwoNxJJ