Code Monkey home page Code Monkey logo

jquery-practice's Introduction

jQuery-practice

jQuery练习项目

轮播图

  1. 呼吸轮播图:
    • 呼吸轮播图的布局要点:
      • 存放图片的list应该重叠在一起,图片容器设置相对定位,li元素设置绝对定位
    • 点击 demo 查看效果
  2. 滚动轮播图:
    • 滚动轮播图的布局要点:
      • 图片应该在一行显示,同时父元素的宽度应该足够宽
      • 图片容器的宽度为一张图片的宽度,将overflow设置为hidden
      • 要有不间断滚动的效果,应该有一张“假图片”,来实现向右拉动,然后通过设置样式实现将“真图”瞬间移动的效果
    • 点击 demo 查看效果
  3. 间歇效果:
    • 间歇效果的布局要点:
      • 与滚动轮播图类似,只是图片不是一行显示,而是在列显示,因此父元素的高度应该足够高
    • 点击 demo 查看效果
  4. 手风琴效果:
    • 手风琴效果的布局要点:
      • 图片绝对定位,设置不同的left值来达到堆叠的效果
      • 改变图片的left值来达到动画的效果
    • 点击 demo 查看效果

jquery-practice's People

Contributors

laginalin avatar

Forkers

cuizhicong

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.