[Pro] magnifier?

Unless you actually use the style (.zoomLens) FW will not publish it.

There is a How To on creating a Tag style (and custom styles) at Creating Custom CSS Styles in Freeway - Freeway - Softpress Talk

The gist of it is (for a Tag) that you create a new Style and in the Tag field you would add div.zoomLens

Then add the other stuff in the extended section ie the cursor/url bit and then OK it.

Now go back to the name field and delete what FW has (not so) helpfully stuck in there for you - probably something like style26 - then Tab out of the Name field checking that FW hasn’t added something back in.

Now when you OK the dialogue you will have created a new Style called div.zoomLens which you do not need to apply to anything and which will be published in your CSS.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Dave. I successfully created the style but how do i apply it to the image? It doesn’t show up in the inspector…

Sorry to be such a pest :slight_smile:

http://theminesoflight.com/zoomtest.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I successfully created the style but how do i apply it to the image? It doesn’t show up in the inspector…

The point about a Tag style is that you DONT actually have to apply it to anything. It affects the Tag - in your case div.zoomLens - so for any div with a class of zoomLens it will apply.

However you should be able to see it in the Inspector - and if it isn’t there then you have not created it correctly.

Just check exactly what you have in the cursor value field it should be (if that is the correct name/url of your image)

url('http://theminesoflight.com/Resources/magnify.gif'), auto

I probably mislead you with an extra " in there

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So now that Seth is sorted we should recap on the styling for a custom cursor for a div with the class of zoomLens

div.zoomLens {
cursor: url('http://yoursite.com/your_custom_cursor_image.gif'), auto;
}

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK, now it works after fixing the value in the style. So that I’m clear, how does the class ‘zoomLens’ get applied to that particular div?

Thanks again!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

how does the class ‘zoomLens’ get applied to that particular div

It is added/created by the javascript that you are using for the zoom effect.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Got it, great! Thanks again for your time Dave.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just to really bang this point home – you are urged never to apply this sort of style (Tag-only) to anything. You may actually break the page if you do. Trust that it will work, know that it will not appear to work in the Freeway design view, but it will work if you preview in a browser (or Freeway), as well as in the final site.

Walter

On Apr 28, 2015, at 3:16 PM, DeltaDave email@hidden wrote:

Now when you OK the dialogue you will have created a new Style called div.zoomLens which you do not need to apply to anything and which will be published in your CSS.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve redone this page in a full browser width version and everything seems to work fine on a computer but the site breaks on an iPad or iPhone and doesn’t scroll. Any ideas why this is happening?
http://theminesoflight.com/zoom2.html

Thanks as always!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

at the moment the items have a overflow:hidden


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can I just say that I am not finding this to be a good user experience.

These premise of these sort of scripts is to provide detail on otherwise relatively small product images and to use it on such large images I find jarring and unnecessary.

The experience on iphone is worse because the standard reaction would be to pinch and zoom and this flies against that.

Can you give us an insight into your reasoning for going down this route as there may be a better way that avoids the iphone no scroll problem which unfortunately is difficult to debug without the FW file.

BTW - is does actually scroll on iphone if you grab an area outwith the zoomContainer.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is an update (excerpt) for kickstarter supporters of a forthcoming book. These are not the final images but a test for size. The authors idea is that the crumpled paper was stolen out of his waste paper basket and spy photographed and then uploaded to this webpage. That carries forward with the sleuth thing of reading the text with the zoom lens. This will be page they they get to from a link on the sites homepage. I know, weird but thats what they want…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

weird but thats what they want….

Maybe at smaller breakpoints the Zoom effect should be disabled?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Ah! excellent idea, thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Back to the iOS scrolling issue… I have changed the overflow to scroll on the images as well as added -webkit-overflow-scrolling: touch but am still not able to scroll, double tap to enlarge or pinch to zoom. As Dave said you can kind of scroll if you touch the very edge of the screen…

http://theminesoflight.com/zoom2.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think the issue is that the Zoom Javascript is capturing the touch/scroll event so not allowing scroll.

So unless you reduce the area of the Zoom dimensions you are not going to get scroll on iOS with Zoom.

Which gets me back to my point about disabling Zoom at smaller screen sizes.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I could use some help in disabling zoom at smaller screen size. Removing any of the extended attributes is all or none. ElevateZoom’s webpage has no reference to it and I’ve done a google search but don’t find anything relevant. I tried changing the image at smaller breakpoints but that changes it for all.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How did you add the class: zoomContainer to each Div?

That may be the key here.

If the Div doesn’t have that class at smaller sizes the script will fail.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I didn’t, I assume the script did that? Is there a way to defeat that at the smaller sizes or does the script need to be edited?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think a relevant fix here:

Could you tell where I should add his code?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options