After creating my bootstrap 4 website, I encountered an issue with the code below where only half of the image is displayed initially due to a conflict in the code. It also fails to work properly when moving the mouse after shifting the whole image from right to left. Does anyone have a solution for this?
View Example PROTOTYPE HERE
Thank you!
.moving-left
{
position: relative;
transition: transform 0.3s ease;
transform: translateX(0px);
}
.moving-left:hover
{
transform: translateX(-80px);
}
.moving-left button
{
left: 14px;
position: absolute;
top: 30px;
z-index: 99;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<div class="row mb-75">
<div class="col-lg-7">
<div class="anime-image-wrapper">
<div class="feature-image-wrap ml--55">
<div class="moving-left">
<img src="https://colorlib.com/wp/wp-content/uploads/sites/2/best-bootstrap-admin-templates.jpg" class="wow zoom" alt="astriol feature">
</div>
</div>
<span class="circle" data-parallax='{"y": -70}'></span>
<div class="anime-dot">
<img src="media/feature/dot.png" alt="astrion dot">
</div>
</div>
<!-- /.anime-image-wrapper -->
</div>
<!-- /.col-md-6 -->