Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Intergating functionality

Hello,

-I am trying in put together a 360 image with zoom functionality using jQuery

-I am using http://www.360slider.com/ for the 360 slider (I am editing the custom_controls.html)

and I have tried http://www.elevateweb.co.uk/image-zoom/examples and http://www.dailycoding.com/Posts/imagelens__a_jquery_plugin_for_lens_effect_image_zooming.aspx to zoom in the images.

-What I have done-

I have included the jquery.imageLens.js

and added $('.product2').imageLens({ borderSize: 8, borderColor: "#06f" }); just before the last </script> tag. This brings up a blue circle for me but no zooming of the image and it stops the rotating of the image from happening.

I have also tried $('.product2').imageLens({ imageSrc: "assets/product2/shoe-360-"+spinner+".jpg" });

I hope someone can help me

1 Answer

Andrew Chalkley
STAFF
Andrew Chalkley
Treehouse Guest Teacher

Maybe throw what you're working up on a codepen. Seeing it in context and being able to play around with the code can help people help you.