• Hello. I want to add function as this – [ redundant link removed ]
    When you scroll on any poster’s image, you can see how the image zoomout, so you can check it better. How can i do that with wordpress – featured image? I want my posters to zoomout when you scroll on them? is there a plugin for that or any custom code?

    • This topic was modified 4 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can do it with JavaScript (JS). The larger element is always part of the page, but is normally hidden with CSS. On the mouseover event of the smaller image, JS alters the display property of the larger image so it becomes visible. On the mouseout event, JS again hides the larger image to return to status quo.

    This is essentially how modals work, though the triggering events might vary some. You ought to be able to find generic modal script examples on the ‘net. They don’t have to be WP specific, though there is a distinct way to load JS scripts in WP. For that we use wp_enqueue_script().

    Thread Starter qnkov

    (@qnkov)

    Ah, is there an easy way for me to get it? Possible giving me the code and telling me where to put it. ??

    Moderator bcworkz

    (@bcworkz)

    Sorry, I don’t have anything like that I could offer. If you want something easy to implement, maybe try a few of the lightbox plugins or similar image enlargement plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ZoomOut featured image?’ is closed to new replies.