Hi. I’m searching for any kung-foo tricks. Like animation, condition, something that we technically use JavaScript (and it’s libraries for), but only with HTML 4.1/CSS 3.
Something like this:
It looks pretty simple. But you gather the idea, I COULD’VE done this with jQuery.
But that is a little trick that will work on browsers with HTML 4.1 and CSS3 capabilities. And is a good substitute to be honest. Does anybody maybe know tutorial, or could share some tricks that I could learn? I’m interested in ANYTHING from that kind.
JS is a big subject with an infinite range of uses. It would make more sense to give us a particular script and ask how it could work with JS turned off.
I gave one in first topic, the facto, I mentioned it twice. There’s easy replacement of JavaScript/jQuery code with couple lines of CSS. And I’m looking for it’s brothers.
I believe that @Webkitnote is asking for CSS equivalents (which he refers to as “hacks”) for behaviors for which he has comfortably used JavaScript or jQuery in the past. It’s a fair question but not one that I can answer.
I’ve always considered JS to be the fallback mechanism of choice when CSS cannot provide a desired behavior. I don’t consider properly employed CSS to be a “hack”, especially for JS, and I don’t know of any tutorials or books that have been written from that perspective. Perhaps someone else does.
My advice to Webkitnote would be to “can” the idea of using JS for awhile except where CSS cannot provide the desired behavior. Experience with HTML/CSS is a great teacher and he does seem to have a good CSS foundation so it shouldn’t be too much of a stretch.