JQuery Animation. If you look at example1.html, you will see that it is a basic web page with links to the jquery library, and a script.js file and some.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Building the e-Zine. The e-Zine is in the form of a Website and must contain the following: Several pages, which must be linked, including an Information.
1 POWERPOINT May 2004 To move the text box - move the mouse over the border of the text box, and once the 4-way arrow appear – click and drag the box.
The jQuery library. What is jQuery ? A javascript lightweight library Is very easy to use Is powerful Is cross-browser compatible Downloadable from jQuery.com,
JQuery A Javascript Library Hard things made eas(ier) Norman White.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
Chapter 6 Photoshop and ImageReady: Part II The Web Warrior Guide to Web Design Technologies.
JQuery Effects JQuery Animation.
Technology In The Classroom Series Computer Presentations.
1 Secondary Fields Web Portal The following slides displays the revised Secondary Fields web portal, version
Putting Your PowerPoint into WebCT. To put your PowerPoint online Create an appropriate folder Upload the PowerPoint file to that folder Create a link.
Basic Animation: JavaScript and jQuery.  1 week from today (next Tuesday)  You're allowed to bring a 3x5 card with anything written on it that you want.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Online Learning Readiness Ho.  Go to ww.cpcc.edu/distanceww.cpcc.edu/distance  Click on Orientation.
Other Features Index and table of contents Macros and VBA.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Animating and Using Multimedia Effects Lesson 10.
Business Optix Library Service – Workflow
CHAPTER 12 UNLEASHING JAVASCRIPT USING JQUERY. LEARNING OBJECTIVES How to download the JQuery library. How to integrate the JQuery library into an HTML.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
KRAD makes it easy to handle HTML events in your webpage. Kuali University: Apply Now Lab 6: Fun with HTML Events Lab Objectives HTML Events – what are.
NetTech Solutions Working with Web Elements Lesson 6.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
Chapter 19: Adding JavaScript
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
Bill's Amazing Content Rotator jQuery Content Rotator.
POWERPOINT 2007 TUTORIAL Features you must know. Adding a new slide  Using the same topic of interest. On Slide 1 make a Title Page.  Right click on.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Images in HTML Images in the foreground –src loaded separately; relative to home directory –Width & height set aside space in page; do not use this to.
1 ADVANCED MICROSOFT POWERPOINT Lesson 10 –Using Advanced Presentation Features Microsoft Office 2003: Advanced.
Working With Text Web Design Section 5-9 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Adding Documents to OnCourse. Add a Document Look for the Documents tab and click it.
Wiki How to masterfully create your own webpage….
Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008.
Saving Work to Your School Server Click through this presentation at your own speed. Use it as a review or a guide while saving a project.
Attachments are files that you can open with your for e.g. when you send an you could attach a link or a picture a word document or a spreadsheet.
Adding Sound and Animation to PowerPoint Presentations Some Notes By Kevin Hytten.
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Preset and custom animation
Web Design-Lecture3-QN-2003 Web Design Enhancing a Website.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Modifying HTML attributes and CSS values. Learning Objectives By the end of this lecture, you should be able to: – Select based on a class (as opposed.
Adding a wave file to a slide Adding a wave file to a slide (1 of 7) 1. Click on Insert. 2. Click Movies and Sounds. 3. Click Sound from file
PowerPoint: Animation Randy Graff HSC IT Center Training
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
IS2802 Introduction to Multimedia Applications for Business Lecture 07: Introduction to jQuery Rob Gleasure
Functions.  Assignment #2 is now due on Wednesday, Nov 25 th  (No Quiz)  Go over the midterm  Backtrack and re-cover the question about tracing the.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Basic HTML swap with AJAX. Lets get our beloved html for our llama site. Open the index.html page and add a class to our navigation links. Then lets add.
Ajax Dice Game Part 1. We saw that we could use the jQuery load() function, to dynamically load a piece of an html document into another html document.
Animations in GIMP GIMP Lesson 4 Animations: Chapter 3 pp Beginning GIMP From Novice to Professional.
Action Buttons Link to another place in your presentation Link to web pages, videos, etc. Interactivity – gives the viewer a choice of what happens next,
Introduction to JQuery COGS 187A – Fall JQuery jQuery is a JavaScript library, and allows us to manipulate HTML and CSS after the page has been.
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
Multiplication Level 1 (Facts 0-2) Read These Instructions:  Try to get the answer before the computer puts it on the screen.  Do not click on your.
JQuery Tutorial. What is jQuery jQuery is a JavaScript Library The purpose of jQuery is to make it much easier to use JavaScript on your website JavaScript.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Why use PowerPoint? Attracts attention Motivates DynamicAnimated Visual.
Using JavaScript to Show an Alert
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Detailing Your e-Campus Shell
JQuery with ASP.NET.
Webropol Getting started- 1
An Introduction to Animation
Project and Assignment Submission
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

jQuery Animation

If you look at example1.html, you will see that it is a basic web page with links to the jquery library, and a script.js file and some styles. There is a div and some buttons to click to show and hide the div. Create a file called script.js and put it in the folder so the link to the file will work.

We start with our normal document.ready function. We can create a function and attach it to a click handler so that when the hide button is clicked the div hides with normal speed. Try adding these to the script as well.

notice I can replace slow with something really slow, like 5000 milliseconds. I can even pass in something called a "callback" which is function that runs when the animation is complete.

example2.html is really the same page with an extra button. Fading works similarly to hiding and showing. link to the script2.js page. We need our ready function again.

You can probably guess what this will do. and you can guess what these will do. The bottom two will fade to an oppacity from 0 – 1. you can also specify seconds for this one (in milliseconds of course). Plus you can have any of these have a callback as well.

here are some more functions to play with. You can try the callbacks and the milliseconds with these as well.

The animate function lets you create custom animations for elements. You pass it an attribute to modify over time, the amount of time, and you can pass it some basic easing (either swing or linear). You can also pass in callback functions for when it completes.

try adding these last two for the last two buttons. The top one does all three animations at once, the bottom one makes use of the callback feature to call the animations one after another.