GithubHelp home page GithubHelp logo

fe_demo's Introduction

一些前端的效果demo

滚动固定的子标题

fixed_subtitle

模仿手机联系人中的字母标题滚动固定的效果,感觉fixed方案的流畅程度还算可以。

路径动画

path_animation 路径动画 让一个元素按照一个轨迹运动, SVG SMIL animation chrome 说 SMIL 已经不被推荐使用了,新的 css 属性 motion-path,也可以做路径动画。但是兼容性还是 SMIL 好一点吧。

描边动画

stroke_animation

判断鼠标移入的方向

mouse_direction

思路是,矩形的对角线把矩形分成了四个部分,鼠标移入、移出的时候判断鼠标的坐标是在矩形的那个部分上。 网友的demo是 mouse_direction 下面的 demo1.html 和 demo2.html,me.html 是我的实现。

鼠标滚轮事件

mousewheel

jQuery的滚轮兼容插件jquery-mousewheel jQuery的全屏滚动插件jQuery Scrollify

fe_demo's People

Contributors

peakfish avatar

Watchers

James Cloos avatar  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.