Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 10th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PhoneGap   jQuery = weird redraw flicker with onclick? (animating opacity causes flicker)
  2. var $optionsPlayers = $('#optionlist-players li');
  3. $optionsPlayers.click(function () {
  4.     $optionsPlayers.filter('.selected').removeClass('selected');
  5.     $(this).addClass('selected');
  6.     players = ($(this).index()) + 1;
  7.    });
  8.        
  9. .example {
  10.    -webkit-opacity: .25;
  11. }
  12.        
  13. .example.selected {
  14.     -webkit-opacity: 1;
  15. }
  16.        
  17. .example.selected {
  18.     -webkit-opacity: .99;
  19. }