- This topic has 9 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
November 16, 2022 at 3:27 am #2417765
Rostyslav
Hello,
How can I achieve this hover effect using Generatepress and Generateblocks?
Thanks!
November 16, 2022 at 5:44 am #2417922David
StaffCustomer SupportHi there,
what hover effect ? Do you have a link i can see ?
November 16, 2022 at 6:01 am #2417944Rostyslav
November 16, 2022 at 9:33 am #2418478David
StaffCustomer SupportThat specific design would require Custom Development.
If you use GenerateBlocks Pro, then you can use the Effects options to Translate a Containers position and its opacity to create something similar.November 29, 2022 at 2:10 am #2440575Rostyslav
Hi David. I now have a GB pro. Can you help me to get that animation using GP + GB pro?
Thanks!
November 29, 2022 at 7:11 am #2440971David
StaffCustomer SupportAre you using a Query Loop Block to display posts ? Or is that content static ?
December 10, 2022 at 1:58 pm #2457359Rostyslav
Static
December 11, 2022 at 6:39 am #2457778David
StaffCustomer SupportSimple overview, to begin with paste this code into the editor for a quick and simple mockup:
<!-- wp:generateblocks/grid {"uniqueId":"68c5bdf8","columns":1,"isDynamic":true,"blockVersion":2} --> <!-- wp:generateblocks/container {"uniqueId":"f4d3f597","isGrid":true,"gridId":"68c5bdf8","width":100,"widthMobile":100,"bgImage":{"id":"","image":{"url":"https://picsum.photos/id/237/600/400"}},"bgOptions":{"selector":"pseudo-element","opacity":1,"overlay":false,"position":"center center","size":"cover","repeat":"no-repeat","attachment":""},"innerZindex":1,"isDynamic":true,"blockVersion":2,"useTransition":true,"transitions":[{"state":"normal","target":"self","customSelector":"","timingFunction":"ease","property":"all","duration":0.5,"delay":""},{"state":"normal","target":"customSelector","customSelector":".inner-block","timingFunction":"ease","property":"all","duration":0.5,"delay":""}],"useTransform":true,"transforms":[{"type":"translate","state":"normal","target":"customSelector","customSelector":".inner-block","translateY":"210"},{"type":"translate","state":"hover","target":"customSelector","customSelector":".inner-block","translateY":0}]} --> <!-- wp:generateblocks/container {"uniqueId":"6b3684fc","minHeight":300,"paddingTop":"20","paddingRight":"20","paddingBottom":"20","paddingLeft":"20","paddingSyncUnits":true,"backgroundColor":"rgba(255, 255, 255, 0.51)","isDynamic":true,"blockVersion":2,"className":"inner-block","transitions":[],"transforms":[]} --> <!-- wp:generateblocks/headline {"uniqueId":"ac451d77","backgroundColor":"","textColor":"","linkColor":"","linkColorHover":""} --> <h2 class="gb-headline gb-headline-ac451d77 gb-headline-text">Some text over the image</h2> <!-- /wp:generateblocks/headline --> <!-- wp:generateblocks/headline {"uniqueId":"df819abf","backgroundColor":"","marginTop":"150"} --> <h2 class="gb-headline gb-headline-df819abf gb-headline-text">Some text hidden</h2> <!-- /wp:generateblocks/headline --> <!-- /wp:generateblocks/container --> <!-- /wp:generateblocks/container --> <!-- /wp:generateblocks/grid -->Its a single column grid, once you built one column you can just create duplicate columns.
So in the Grid Column Container we have a background image ( set to Pseudo Element ).
And it has 2 x Transform > Translate Effects that are set to Target the Custom Selector of.inner-block
Inside that Container we have another Container that has our content, and that has an Advanced > Additional CSS Class ofinner-blockSo the when you hover over the parent container it applies the transform translate styles to the
inner-blockcontainer.December 20, 2022 at 11:09 am #2468528Rostyslav
Thanks David! That worked perfectly! You are a genius!
December 21, 2022 at 3:04 am #2469145David
StaffCustomer SupportGlad to be of help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.