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

basic-fade-overflow

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-fade-overflow

Fades out content that overflows so the user knows there's more.

  • 0.8.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

API Documentation

FadeOverflow ⇐ ElementBase

Fades out content that overflows so the user knows there's more.

This component doesn't handle interactivity.

The component needs to know the color it should fade to, which it tries to infer from the background color. In some situations, this may not work, in which case you can explicitly set the fadeColor attribute.

The component currently always displays the fade, even if the component's content is short enough to fit completely in view.

Kind: global class Extends: ElementBase

fadeOverflow.fadeColor

The color of the fade.

The fade color should match the background color. The component does its best to infer the background color, but in some situations, that may not work. In those cases, you can manually identify the background color. This should be a solid color.

Kind: instance property of FadeOverflow Default: white
Attribute: fadeColor

fadeOverflow.refresh()

Infer the fade color from background color. If you have programmatically changed the color behind the component, you can invoke this method to have the component try to pick up the new background color.

Kind: instance method of FadeOverflow

fadeOverflow.showFade : boolean

True if the component should show the fade to the background color.

Kind: instance property of FadeOverflow Default: true

Keywords

FAQs

Package last updated on 02 Jun 2016

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