There are two classes I am trying to manipulate: .header-grid & .lg-card-animation
I am trying to change the property of the .header-grid class once the mouse hovers over the .lg-card-animation. I am sure that the animation works and is linked correctly. I am trying to change the grid-template-columns
property in .header-grid to 55% 45%
. I am using the SASS preprocessors. I am also using Vuejs if that makes a difference.
Specifcially not to get duplicated what I want to ask is: Is it possible to effect parent classes from an animation that was declared in a sibling class.
SASS:
.header-grid
height: 100vh
display: grid
grid-template-columns: 50% 50%
.lg-card-animation:hover
animation-name: expand-card
animation-duration: 1000ms
@keyframes expand-card
100%
grid-template-columns: 55% 45%
HTML:
<header class="header-grid">
<div class="full-height full-width background-fix lg-card-animation" v-bind:style="{ 'background-image': 'url(' + headerImages[0].image + ')' }">
<h1 class="header-text">{{ headerImages[0].name }}</h1>
</div>
<div class="header-row-grid">
<div class="full-height full-width background-fix" v-bind:style="{ 'background-image': 'url(' + headerImages[1].image + ')' }">
<h1 class="header-text">{{ headerImages[1].name }}</h1>
</div>
<div class="full-height full-width background-fix" v-bind:style="{ 'background-image': 'url(' + headerImages[2].image + ')' }">
<h1 class="header-text">{{ headerImages[2].name }}</h1>
</div>
</div>
</header>