Opened 12 years ago
Closed 12 years ago
#9356 closed enhancement (wontfix)
.css method needs callback for handling -webkit-transition...
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.7 |
Component: | css | Version: | 1.6.1 |
Keywords: | 1.7-discuss | Cc: | |
Blocked by: | Blocking: |
Description
as css properties can now in certain cases be time-based, the jquery method should should be a callback function.
Change History (11)
comment:1 Changed 12 years ago by
Component: | unfiled → css |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:3 Changed 12 years ago by
+0, This is an interesting point, but I think it deserves more discussion
comment:4 Changed 12 years ago by
-1, No, transitions should be dealt with in animations first, then, and only then, should we consider re-routing .css to .animate when needs be.
comment:6 Changed 12 years ago by
+0 I really like this idea but let's explore it via a duck punch before it heads into core.
generally it woud work like this
1) determine support for css transitions at load
2) if support, on every css() call with attached callback, bind to the associated transitionEnd event (or all of them)
2a) if no support, fire callback immediately after style change is made
3) when transitionEnd event fires, fire callback
Some relevant code is here: https://github.com/Modernizr/Modernizr/blob/cade16/modernizr.js#L1071-1090
comment:8 Changed 12 years ago by
-1, Seems like focusing on improving animate would be better (or having this as a plugin).
comment:9 Changed 12 years ago by
-1, Definitely an awesome idea but "plugin first," i.e., we want to see it happening :)
comment:11 Changed 12 years ago by
Milestone: | 1.next → 1.7 |
---|---|
Resolution: | → wontfix |
Status: | open → closed |
Closing per 1.7 roadmap meeting resolution
Please submit a proposal for 1.7 https://spreadsheets.google.com/viewform?formkey=dG0yTEs2ZTFWQUhDRUp5dzRyc3NwV2c6MA