Giter Site home page Giter Site logo

jquery-exercises's Introduction

jQuery Exercises

Download the complete repo and use index.html to view all pages.

Exercise 1: In the HTML file, replace the div (class = "pushy fadeitem") with any Vancouver image from the /images/ folder. Get the image to fade in/out exactly like the div does. Main file: ex01.html

Exercise 2: Use the way fadeOut() works to create a simple photo viewer. Hint: append() will help you! Main file: ex02.html

Exercise 3: Use toggle() to make a nice formatted info box appear when you hover on any boldface name in a story. Main file: ex03.html

hideslidefade Exercise: Experiment with toggle functions that hide, slide or fade objects on the page. Main file: hideslidefade.html

slideToggle Exercise: Making an accordion-style menu is easier than you think. Main file: slideToggle.html

Drag exercise: Learn how to use mouseup and mousedown. Even better, learn how to make something follow your cursor around the screen! Main file: drag.html

Animate exercise: Use the arrow keys to make an image move up, down, right, or left. Of course, jQuery can also make things move without any keys being pressed! Main file: animate.html

Interactive table exercise: Let's say you are trying to memorize all the state capitals. You could use flash cards ... or you could use jQuery! This exercise shows how traversing the DOM can save you from a lot of markup. You don't need to put a class on every cell or every column in the table, because jQuery can find the exact cell you want. Main file: states.html

BONUS Inside the /css_animation/ folder, you'll find an example that does not use any jQuery.

jquery-exercises's People

Watchers

James Cloos avatar DGT avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.