Bug Tracker

Opened 5 years ago

Closed 4 years ago

#9356 closed enhancement (wontfix)

.css method needs callback for handling -webkit-transition...

Reported by: peter.i.ehrlich@… Owned by:
Priority: low Milestone: 1.7
Component: css Version: 1.6.1
Keywords: 1.7-discuss Cc:
Blocked by: Blocking:


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 5 years ago by rwaldron

  • Component changed from unfiled to css
  • Priority changed from undecided to low
  • Status changed from new to open

comment:2 Changed 5 years ago by john

  • Keywords 1.7-discuss added

Nominating ticket for 1.7 discussion.

comment:3 Changed 5 years ago by rwaldron

+0, This is an interesting point, but I think it deserves more discussion

comment:4 Changed 5 years ago by jaubourg

-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:5 Changed 5 years ago by timmywil


comment:6 Changed 5 years ago by paul.irish

+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

Last edited 5 years ago by paul.irish (previous) (diff)

comment:7 Changed 5 years ago by dmethvin

-1, Plugin first.

comment:8 Changed 4 years ago by john

-1, Seems like focusing on improving animate would be better (or having this as a plugin).

comment:9 Changed 4 years ago by ajpiano

-1, Definitely an awesome idea but "plugin first," i.e., we want to see it happening :)

comment:10 Changed 4 years ago by scott.gonzalez


comment:11 Changed 4 years ago by rwaldron

  • Milestone changed from 1.next to 1.7
  • Resolution set to wontfix
  • Status changed from open to closed

Closing per 1.7 roadmap meeting resolution

Note: See TracTickets for help on using tickets.