This document discusses jQuery UI and plugins. It provides an overview of jQuery UI classes that can be used to style elements. It also demonstrates several common jQuery UI widgets like buttons, accordions, dialogs, and tabs. The document discusses jQuery UI effects for animations and transitions. It provides tips for identifying good plugins based on aspects like their API, documentation, support, and community. Overall, the document is an introduction to using jQuery UI and evaluating jQuery plugins.
16. UI Class Quick Tip
Add hover by grabing buttons with
.ui-state-default and attach hover class.
.ui-state-default
17. UI Class Quick Tip
Add hover by grabing buttons with
.ui-state-default and attach hover class.
.ui-state-hover
18. UI Class Quick Tip
Add hover by grabing buttons with
.ui-state-default and attach hover class.
.ui-state-default .ui-state-hover
19. UI Class Quick Tip
Add hover by grabing buttons with
.ui-state-default and attach hover class.
.ui-state-default .ui-state-hover
$(“.ui-state-default”).hover(
function(){ $(this).addClass(“ui-state-hover”); }),
function(){ $(this).removeClass(“ui-state-hover”); })
);
20. UI Class Quick Tip
Add hover by grabing buttons with
.ui-state-default and attach hover class.
.ui-state-default .ui-state-hover
$(“.ui-state-default”).hover(
function(){ $(this).addClass(“ui-state-hover”); }),
function(){ $(this).removeClass(“ui-state-hover”); })
);
More info:
http://www.filamentgroup.com/lab/styling_buttons_and_toolbars_with_the_jquery_ui_css_framework/
55. UI Effects
Animate background color in .5 seconds
$(...).animate({
backgroundColor: "#68BFEF"
}, 500);
Animate to newClass in .5 seconds
$(...).switchClass(
'currentClass','newClass', 500);
56. UI Effects
Animate background color in .5 seconds
$(...).animate({
backgroundColor: "#68BFEF"
}, 500);
Animate to newClass in .5 seconds
$(...).switchClass(
'currentClass','newClass', 500);
Hide elements with drop animation
$(...).hide("drop",
{ direction: "down" }, 500);
57. My Fun Little Tutorial
Building a Ninja Turtles Game with jQuery
http://marcgrabanski.com/article/building-a-tmnt-game-with-jquery
76. Good Plugin Checklist
•API is like jQuery core
•Buzz / mentions in blogs
•Documentation
•CSS makes sense to you
77. Good Plugin Checklist
•API is like jQuery core
•Buzz / mentions in blogs
•Documentation
•CSS makes sense to you
•Author is committed to support
78. Good Plugin Checklist
•API is like jQuery core
•Buzz / mentions in blogs
•Documentation
•CSS makes sense to you
•Author is committed to support
•or.. Jörn made it http://bassistance.de/
86. Good Plugin Support
•Google Groups, mailing lists
•Comments are ok when plugin is new
•Does author modify plugin based on feedback?
87. Good Plugin Support
•Google Groups, mailing lists
•Comments are ok when plugin is new
•Does author modify plugin based on feedback?
•Code repository, when was last commit?
91. Good Plugin Community
•Buzz - Plugin Lists, Ajaxian, etc
•Does the author make update announcements?
•Depreciated features well-documented.
92. Good Plugin Community
•Buzz - Plugin Lists, Ajaxian, etc
•Does the author make update announcements?
•Depreciated features well-documented.
Identify that the author is communicating.