Bug Tracker

Ticket #1606 (closed bug: worksforme)

Opened 1 year ago

Last modified 1 year ago

not enough fps on fade

Reported by: AlexL Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.2.1 Component: fx
Version: 1.2 Keywords: fade, animate, opacity
Cc: Needs: Review

Description

Hi, I'm new here so sorry if I filled some forms out wrong

var steps = 0
$('div#BB_overlay').css({
	position: 'fixed',
	left: 0, top: 0,
	width: '100%', height: '100%',
	zIndex: 10000
}).animate(
	{opacity: 0.5},
	{duration: 1, step: function() { steps++; }}
);

steps on my computer:

firefox: 20
safari: 10
opera: 6

similar script in prototype/aculous has more than 20 fps on all browsers

Attachments

Change History

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to worksforme

You do realize that it's duration: 1000, right? duration: 1 is just 1 millisecond - which is probably why it's having problems :-)

For me, I'm getting anywhere from 50-80 fps in all browsers.

Changed 1 year ago by AlexL

Sorry, my mistake. Of course I meant 1000ms

I have just repeated my test and it seems this time it's the same with jQuery and aculo.us

test: http://www.baldursoft.de/test.php

Note: See TracTickets for help on using tickets.