Replies: 2 comments 1 reply
-
No, Stylus is for CSS only. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Zerophase,
It would depend entirely on the JavaScript function in question, so in general, the answer is no: JavaScript can do many things that CSS simply can't.
On the other hand, I've seen some darn amazing interactive experiences constructed entirely in CSS, but those are generally exercises in helping developers understand the furthest corners of CSS, rather than replacements for JavaScript.
I imagine that clever people here could probably cook up any number of contrived examples of emulating "javascript-like behavior" using pure CSS, but without knowing the specifics, it's more likely not possible.
If I'm wrong, I'm confident that someone will put me right.
Dave
On Saturday, September 2, 2023 at 10:18:52 AM PDT, Zerophase ***@***.***> wrote:
I have a few websites, which I want to modify the behavior of a Javascript function. Is that possible with Stylus? Have an example?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a few websites, which I want to modify the behavior of a Javascript function. Is that possible with Stylus? Have an example?
Beta Was this translation helpful? Give feedback.
All reactions