Skip to main content

Bug Tracker

Side navigation

#9356 closed enhancement (wontfix)

Opened May 20, 2011 02:36AM UTC

Closed June 07, 2011 06:53PM UTC

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

Reported by: peter.i.ehrlich@gmail.com 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.

Attachments (0)
Change History (11)

Changed May 20, 2011 03:10PM UTC by rwaldron comment:1

component: unfiledcss
priority: undecidedlow
status: newopen

Changed May 22, 2011 07:27PM UTC by john comment:2

keywords: → 1.7-discuss

Nominating ticket for 1.7 discussion.

Changed May 22, 2011 08:38PM UTC by rwaldron comment:3

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

Changed May 23, 2011 12:58AM UTC by jaubourg comment:4

-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.

Changed May 23, 2011 04:58AM UTC by timmywil comment:5

-1,

Changed May 23, 2011 04:37PM UTC by paul.irish comment:6

_comment0: +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-10901306168681516598

+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

Changed May 24, 2011 10:10PM UTC by dmethvin comment:7

-1, Plugin first.

Changed June 03, 2011 02:05PM UTC by john comment:8

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

Changed June 05, 2011 10:18PM UTC by ajpiano comment:9

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

Changed June 06, 2011 03:19PM UTC by scottgonzalez comment:10

-1

Changed June 07, 2011 06:53PM UTC by rwaldron comment:11

milestone: 1.next1.7
resolution: → wontfix
status: openclosed

Closing per 1.7 roadmap meeting resolution