@matjaz I believe I was using 6.8 the other day when I posted, but I did upgrade to 7.0 yesterday to try it out and the behavior is the same. So, I’m currently using 7.0.
Here is the HTML for the <a>
element:
<a href="https://portfolio.local/responsive-city-web-concept/" class="entry-priority-default link-post-grid" data-pg-ia='{"l":[{"name":"hover-in-post-grid","trg":"mouseenter","a":{"l":[{"t":"#gt# div:nth-of-type(1)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":1}},{"t":"tween","p":0.1,"d":0.1,"l":{"autoAlpha":0},"e":"Power1.easeOut"}]},{"t":"#gt# div:nth-of-type(2)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":0}},{"t":"tween","p":0,"d":0.2,"l":{"autoAlpha":1},"e":"Power1.easeOut"}]}]}},{"name":"hover-out-post-grid","trg":"mouseleave","a":{"l":[{"t":"#gt# div:nth-of-type(1)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":0}},{"t":"tween","p":0,"d":0.2,"l":{"autoAlpha":1},"e":"Power1.easeOut"}]},{"t":"#gt# div:nth-of-type(2)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":1}},{"t":"tween","p":0.1,"d":0.1,"l":{"autoAlpha":0}}]}]}},{"name":"resize-post-grid","trg":"resize","a":{"l":[{"t":"","l":[{"t":"set","p":0,"d":0,"l":{"rotation":0},"e":"Power1.easeOut"},{"t":"tween","p":0,"d":0.1,"l":{"rotation":3},"e":"Power1.easeOut"},{"t":"tween","p":0.1,"d":0.1,"l":{"rotation":-2},"e":"Power1.easeOut"},{"t":"tween","p":0.2,"d":0.1,"l":{"rotation":2},"e":"Power1.easeOut"},{"t":"tween","p":0.3,"d":0.1,"l":{"rotation":-1},"e":"Power1.easeOut"},{"t":"tween","p":0.4,"d":0.1,"l":{"rotation":0},"e":"Power1.easeOut"}]}]}}]}' cms-post-link cms-post-field="entry_priority" cms-post-field-type="class" cms-post-field-attribute="class" cms-post-field-acf cms-post-field-class-replace="entry-priority-default"><div class="feature-post-grid">
<div>
<img src="https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X.png" cms-post-image="full" alt="Mobile website designs for a city government." loading="lazy" srcset="https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X.png 512w, https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X-300x169.png 300w" class="img-post-grid" decoding="async"/>
</div>
</div><div cms-post-field="entry_colors_entry_gradient" cms-post-field-type="style" cms-post-field-style="background" class="feature-post-grid feature-post-grid-back" style="background:linear-gradient(to right, rgba(0,204,204,0.15) 0%, rgba(255,153,0,0.15) 100%);background:linear-gradient(to right, rgba(0,204,204,0.15) 0%, rgba(255,153,0,0.15) 100%);background:linear-gradient(to right, rgba(0,204,204,0.15) 0%, rgba(255,153,0,0.15) 100%);" cms-post-field-acf>
<div>
<img src="https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile-Menu_0821_1X.png" cms-post-field="hover_image" cms-post-field-type="image" cms-post-field-acf/>
</div>
</div><div class="feature-post-grid-base">
<img src="https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X.png" cms-post-image="full" alt="Mobile website designs for a city government." loading="lazy" srcset="https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X.png 512w, https://portfolio.local/wp-content/uploads/2022/09/IT_CityWebsiteDesign_Mobile_0821_1X-300x169.png 300w" decoding="async"/>
</div></a>
And here is the code from the Wordpress Action code preview:
<a href="<?php echo esc_url( get_permalink() ); ?>" class="link-post-grid <?php echo get_field( 'entry_priority' ); ?>" data-pg-ia='{"l":[{"name":"hover-in-post-grid","trg":"mouseenter","a":{"l":[{"t":"#gt# div:nth-of-type(1)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":1}},{"t":"tween","p":0.1,"d":0.1,"l":{"autoAlpha":0},"e":"Power1.easeOut"}]},{"t":"#gt# div:nth-of-type(2)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":0}},{"t":"tween","p":0,"d":0.2,"l":{"autoAlpha":1},"e":"Power1.easeOut"}]}]}},{"name":"hover-out-post-grid","trg":"mouseleave","a":{"l":[{"t":"#gt# div:nth-of-type(1)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":0}},{"t":"tween","p":0,"d":0.2,"l":{"autoAlpha":1},"e":"Power1.easeOut"}]},{"t":"#gt# div:nth-of-type(2)","l":[{"t":"set","p":0,"d":0,"l":{"autoAlpha":1}},{"t":"tween","p":0.1,"d":0.1,"l":{"autoAlpha":0}}]}]}},{"name":"resize-post-grid","trg":"resize","a":{"l":[{"t":"","l":[{"t":"set","p":0,"d":0,"l":{"rotation":0},"e":"Power1.easeOut"},{"t":"tween","p":0,"d":0.1,"l":{"rotation":3},"e":"Power1.easeOut"},{"t":"tween","p":0.1,"d":0.1,"l":{"rotation":-2},"e":"Power1.easeOut"},{"t":"tween","p":0.2,"d":0.1,"l":{"rotation":2},"e":"Power1.easeOut"},{"t":"tween","p":0.3,"d":0.1,"l":{"rotation":-1},"e":"Power1.easeOut"},{"t":"tween","p":0.4,"d":0.1,"l":{"rotation":0},"e":"Power1.easeOut"}]}]}}]}'><div class="feature-post-grid">
<div>
<?php echo PG_Image::getPostImage( null, 'full', array(
'class' => 'img-post-grid',
'loading' => 'lazy',
'decoding' => 'async'
), 'both', null ) ?>
</div>
</div><div class="feature-post-grid feature-post-grid-back" style="background:<?php echo get_field( 'entry_colors_entry_gradient' ); ?>;background:linear-gradient(to right, rgba(0,204,204,0.15) 0%, rgba(255,153,0,0.15) 100%);background:<?php echo get_field( 'entry_colors_entry_gradient' ); ?>;">
<div>
<img src="<?php echo PG_Image::getUrl( get_field( 'hover_image' ), 'large' ) ?>"/>
</div>
</div><div class="feature-post-grid-base">
<?php echo PG_Image::getPostImage( null, 'full', array(
'loading' => 'lazy',
'decoding' => 'async'
), 'both', null ) ?>
</div></a>
<!-- Functions.php section Include Resources -->
if( !class_exists( 'PG_Helper' ) ) { require_once "inc/wp_pg_helpers.php"; }