viewport is a simple but handy jQuery plugin that adds methods and CSS selectors to check if the element is in a certain viewport. Furthermore - you will be able to check the position relation of two separate elements even if the are not kin. The plugin uses getBoundingClientRect() to determine element positions so be sure it meets your browser support requirements. ] version 1. x.x uses different detection principles, which will work in almost any browser but work 10-30 times slower.

Features

  • jQuery 3+ (written and tested with 3.3.1)
  • Download it from GitHub, or install via NPM
  • viewport.jquery provides you two different way of relation detection: CSS pseudo-selectors and jQuery methods
  • CSS pseudo-selectors
  • Plugin uses getBoundingClientRect() to determine elements positions so be sure it meets your browser support the requirements
  • Include it in your JS code or link it in html page

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow viewport.jquery

viewport.jquery Web Site

Other Useful Business Software
The All-in-One Commerce Platform for Businesses - Shopify Icon
The All-in-One Commerce Platform for Businesses - Shopify

Shopify offers plans for anyone that wants to sell products online and build an ecommerce store, small to mid-sized businesses as well as enterprise

Shopify is a leading all-in-one commerce platform that enables businesses to start, build, and grow their online and physical stores. It offers tools to create customized websites, manage inventory, process payments, and sell across multiple channels including online, in-person, wholesale, and global markets. The platform includes integrated marketing tools, analytics, and customer engagement features to help merchants reach and retain customers. Shopify supports thousands of third-party apps and offers developer-friendly APIs for custom solutions. With world-class checkout technology, Shopify powers over 150 million high-intent shoppers worldwide. Its reliable, scalable infrastructure ensures fast performance and seamless operations at any business size.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of viewport.jquery!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2023-10-03