Prototype adds major functionality to the language in return – it’s not breaking things for fun. But Prototype (hence the name*) modifies that language to suit its own ends, and any other library or even hand-coded JavaScript can run afoul of these modifications. Even writing functions is entirely different.Įven W3C had to accept HTML5 (instead of their stillbirth XHTML2) - where is the genius rear admiral, gosh!Ī pedant would reply that it’s all JavaScript under the hood – an ECMA-ratified universal standard language. Scripty experts can’t deal (or don’t want to) with jQ and vice versa. We have a common Mark-Up language, a common Styling language but we haven’t got a common library for dynamic stuff. This simply means some additional work (no conflict) or even alternative jQuery examples (which is my preferred way) for additional effects.įor me personal it is still not to comprehend why the “Script part” in web is split off in this ugly way: It uses jQuery which is another library then is usually used in Freeway (Scriptaculous/Prototype = Scripty and FX). Thinking means: "Am I able to handle this stuff from the constructional side, is it even possible to recreate it in Freeway? If not - how to do then (MarkUp). It’s highly recommended to think first and use then. Two (and more) things to keep in mind with all of this: This is what I would call a cool found - thanks for this Tim. Here’s a jQuery plug-in that will do most of the heavy lifting for you (there will be others based on other JS libraries) The effect isn’t too far from the sliding captions example I put together a while ago Having said that it is a nice effect and could be achieved using CSS transitions and a bit of JavaScript to detect where the mouse is on the page. This effect is very popular, possibly overdone, in the WordPress themes world and can be found on many theme galleries. I had tried working with having different buttons on each side of a graphic to prompt a different reaction but it gets very messy and the idea is to keep things clean and still avoid coding of course.Īny help finding a solution is always appreciated.įreewaytalk mailing your subscriptions at: As you rollover the panel the graphic rolls away in the direction of the mouse. I have used rollovers and carousel actions to great effect but are there any actions that can create the kind of effect that is in the example I have posted here. Either that or it was hand-written to do this one thing, by someone who knows a hell of a lot more JavaScript than I do. There are so many direct references to individual elements in the JavaScript (rather than inferred or calculated references) that I suspect this may have been generated by a software application rather than having been written in a general-purpose “plug-in” manner. What does the site look / act like on an iPad? I can see that it’s using jQuery (which is minimized into ), and there are references to Expo.easeOut and Expo.easeInOut, but that’s as far as I get. Wow, that’s a cool effect, and the way it’s being done is quite a mystery to me.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |