Timeline for Menu Bar Animation Plugin
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2014 at 19:20 | comment | added | konijn | Last comment, though feel free to ask questions in Chat ( chat.stackexchange.com/rooms/8595/the-2nd-monitor ) by addressing @Konijn, that would really be an SO question, I cant tell off hand what is going on. | |
Apr 21, 2014 at 19:14 | comment | added | Justin |
Ah. I guess I failed to see that elem.css({...}) was object notation. One more question: Is there a way to achieve a 405deg rotation every time openMenu() fires and only a 45deg rotation every time closeMenu() fires? As it is, you only get the 405deg rotation the very first time openMenu() fires.
|
|
Apr 21, 2014 at 18:50 | comment | added | konijn |
For your question: because in the 2nd statement it does not evaluate var , it just uses the string var as the key, because that is how JS Object Notation works.
|
|
Apr 21, 2014 at 18:49 | comment | added | konijn | Gah, I meant Option D -> New Question, my bad, I misread your options | |
Apr 21, 2014 at 18:48 | vote | accept | Justin | ||
Apr 21, 2014 at 18:47 | comment | added | Justin |
I just posted the update. I've got a quick question, though: Why is it that elem.css(var, var) works, but elem.css({var: var}) does not?
|
|
Apr 21, 2014 at 18:08 | comment | added | konijn | You are welcome, Option C is the way to go. | |
Apr 21, 2014 at 17:49 | comment | added | Justin | Thanks a ton! This kind of feedback is exactly what I'm looking for. I want to post an update, but before I do: Should I A) replace the code in the original post with the new code, B) Add the new code block to the original post or C) post the new code block as an answer? | |
Apr 21, 2014 at 12:57 | history | answered | konijn | CC BY-SA 3.0 |