Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-ic-you

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-ic-you

A simple scroll listener for Ember applications

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-59.26%
Maintainers
4
Weekly downloads
 
Created
Source

ember-ic-you

ember-ic-you is a simple scroll listener that sends an action when the element is in view.

See a demo here: http://vestorly.github.io/ember-ic-you

Installation


Via ember install

ember install ember-ic-you

Via NPM

  • git clone http://vestorly.github.io/ember-ic-you
  • cd ember-ic-you
  • npm install

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • npm test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

Usage


At a basic level, you can use the listener in any template.

// template.hbs

{{ember-ic-you}}

// containing component or route (or controller)

actions: {
  crossedTheLine(above) {
    // do lots of cool stuff
  }
}

Advanced

ember-ic-you is customizable!

  • crossedTheLine - action that is sent when the line is crossed

    • default: 'crossedTheLine'
  • enabled - whether the listeners should be enabled

    • default: true
  • triggerDistance - the distance from the bottom at which crossedTheLine fires

    • default: 0
  • scrollContainer - selector for the container that will be scrolled

    • default: null (will select window)
  • scrolledContent - (optional) selector for the content that will be scrolled if the scrollContainer is NOT window

    • default: null

Running dummy app

Keywords

FAQs

Package last updated on 09 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc