I am looking for a way to change the CSS codes of the blog1popup class when the image is clicked. I already know how to do this using hover, but I need help making it happen on click instead.
The element I want to use as the button;
<div class="row">
<div class="col-lg-4 col-md-6 sm-mb-35px">
<div class="blog-item">
<div class="img">
<img src="assets/img/blog-grid-1.jpg" alt=""></a>
<a href="" class="date"> <span class="day">14</span> <span class="month">April</span></a>
</div>
<a href="" class="title padding-30px" style="margin-top: -1rem;">Fransa Geneline Islak Mendil İhracı</a>
<p style="padding-left: 30px; padding-bottom: 20px; margin-top: -25px; line-height: 20px;">Tüm dünya ülkelerine yardımseverliği gösteren ülkemize..</p>
</div>
</div>
This is the element that I would like to update the CSS codes for.
<div class="blog1popup"></div>
Example using the hover technique;
.blog-item:hover > .blog1popup{
opacity: 100%;
}