{"id":16471,"date":"2021-11-26T06:45:42","date_gmt":"2021-11-26T12:45:42","guid":{"rendered":"https:\/\/theadminbar.com\/?p=16471"},"modified":"2022-06-13T07:34:55","modified_gmt":"2022-06-13T12:34:55","slug":"scrolling-image-effect-with-generateblocks","status":"publish","type":"post","link":"https:\/\/theadminbar.com\/scrolling-image-effect-with-generateblocks\/","title":{"rendered":"Scrolling Image Effect with GenerateBlocks"},"content":{"rendered":"\n

The full-length screenshots of websites we\u2019ve created are great \u2014 but having a giant, skinny image on a page is a bit of a nightmare to design around.<\/p>\n\n\n\n

The scrolling image effect is a nice way to keep the image constrained to manageable size, while allowing people to see the full screenshot, from top to bottom, by allowing the image to scroll when you hover over it.<\/p>\n\n\n\n

\"screen <\/picture><\/figure>\n\n\n\n

I recently applied this effect to my new \u201csimplified\u201d portfolio page on my agency\u2019s website and have had a couple people in our community asking how it was done.<\/p>\n\n\n\n

Thankfully, it\u2019s quite easy, and requires just a small bit of completely customizable CSS (which I\u2019ll be sharing below).<\/p>\n\n\n\n

There\u2019s likely ways you can do this in your page builder of choice, but since I built with Generate Blocks, that\u2019s what I\u2019ll be using for this demonstration.<\/p>\n\n\n\n

Step 1 – The Structure<\/h2>\n\n\n\n

I\u2019ll assume you want to do something similar to the example I provided above from my portfolio, so the first thing we need to do is create the structure for this layout.<\/p>\n\n\n\n

For that, we need to create a container, and inside it put a grid with 2 columns.<\/p>\n\n\n\n

The column on the left will hold our image, and the column on the right will hold our text.<\/p>\n\n\n\n

\"step1 <\/picture><\/figure>\n\n\n\n

Select the container of your left column inside the grid, and under the \u201cBackgrounds\u201d settings insert the image URL from your source image (the image you want to scroll on hover), then use the following settings:<\/p>\n\n\n\n