Hi everyone, I hope you're all doing well. Currently, if you hover over the marker, it changes color. However, I want this effect to apply when hovering over the text below as well. Is there a way to create a connection between these two div elements?
Take a look at the code :
/* Blue mark on the line */
.marker:hover::before{
border-color: #258CC7;
transition: all 1000ms ease-in-out;
}
.marker {
width: 16px;
height: 16px;
border-radius: 50%;
background: #D5DBDB;
margin-top: 10px;
z-index: 3;
transition: width 2s, height 2s, background-color 2s, transform 2s;
}
/* Effect when hovering over the market */
.marker:hover {
background-color: #424949;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name ="author" content="">
<link rel="shortcut icon" href="favicon.ico" type="">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="482a27273c3b3c3a2938087d66786678652a2d3c2979">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
<link rel="stylesheet" href="test2.css">
</head>
<body>
<div class="container">
<div class="timeline-container">
<div class="timeline-block timeline-block-right">
<div class="test3">
<div class="marker"></div>
<div class="timeline-content">
<h3>TEST TEST</h3>
<span>Haec igitur prima lex amicitiae sanciatur, ut ab amicis honesta petamus, amicorum causa honesta faciamus, ne exspectemus quidem, dum rogemur; studium semper adsit, cunctatio absit; consilium vero dare audeamus libere. Plurimum in amicitia amicorum bene suadentium valeat auctoritas, eaque et adhibeatur ad monendum non modo aperte sed etiam acriter, si res postulabit, et adhibitae pareatur.</span>
<p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Best regards