【Web Hacks】使用JuxtaposeJS,在作品集網站中放入前後對比圖
Using JuxtaposeJS to embed “before/after” images in your portfolio website to tell a story (step-by-step).
Published in
Jun 25, 2024
I found it fun to place some “before and after” comparison images to showcase my design works in my portfolio website. Here is how I do it.
Firstly, visit JuxtaposeJS, and hit “Make a Juxtapose” button.
For interactive slider
- paste your before and after images by giving URLs or upload through Dropbox. In my case, I use Flickr to host my images.
- Tune variables as you prefer.
- Click “Publish”, then copy the generated code in “Embed” section.
- Embed the code to your webpage. Here is my example.
For GIF
- Just drop and upload your before and after images from anywhere.
- Click “Generate GIF” button. Download the file.
Enjoy sliding!