Another step closer.
This is something I might do for my own purposes:
- Use Image Filename for a meaningful filename.
- Clone the image.
- In its Placeholder code (body), add:
- <div class="innerZoom" style="background-image: url('/index_htm_files/[Image Filename].jpg'); width:100%; height: 100%;" ></div>
- If Retina is ticked, you can check and use ...url('/index_htm_files/[Image Filename]@2x.jpg');...
- In the Website > Code (head), include:
Code:
<style>
.innerZoom {
background-size: 100%;
transition: all 0.4s ease-in-out;
}
.innerZoom:hover {
background-repeat: no-repeat;
background-size: 105%;
background-position: -10px -10px;
}
</style>
- Items in red can all be adjusted to suit your design.
- For some browser reason, background-position: center center; produces a weird (but interesting) result.
- Soft-group image and Placeholder.
I have been working on a fully automatic method but the scripting is a mess at present.
Acorn
Bookmarks