Code Monkey home page Code Monkey logo

fixedblock's Introduction

FixedBlock

FixedBlock est une librarie en html5 permettant d'ajouter dynamiquement une classe css à un élément du dom onScroll à la position Y de celui-ci.

Cas d'utilisation : Cette librairie peut être utilisée afin de rendre statique un menu quand l'utilisateur atteint sa position vertical lors du défilement de la page. Il est possible de voir ce type d'interaction dans la majorité des documentations d'API. (Ex: twitter.github.com/bootstrap)

##Librairie

Cette librairie peut être très simplement implémentée à une application web. Pour cela importer le code javascript comme suit :

Dans : <head>

<script type="text/javascript" src="./FixedBlock"></script>

A la fin de votre page :

<script type="text/javascript">
	new FixedBlock('element-id', 'fixed-class');
</script>

##Compatibilités

La librairie est compatible pour les navigateurs suivants :

  • Firefox
  • Chrome
  • Opera
  • Internet Explorer 8+

fixedblock's People

Contributors

aubinlrx avatar

Watchers

 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.