
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Plain JavaScript version of jQuery's fadeToggle(), fadeIn(), & fadeOut(), but without all the baggage.
It works like jQuery's fadeToggle(), fadeIn(), & fadeOut(). Uses CSS3 transitions to animate the opacity. Saves the original display value, such as 'inline' or 'block'.
dom-slider is a thing too.
First, place the dom-fader CDN link in your html file above your own JavaScript files. Hide all the elements that you want to fade in/toggle using display: none in CSS. Then do stuff like below:
const {fadeIn, fadeOut, fadeToggle} = window.domFader
const box = document.querySelector('.box')
fadeToggle({element: box})
fadeOut({element: box, fadeSpeed: 1200})
fadeIn({element: box, fadeSpeed: 800, easing: 'easeOut'})
fadeIn({element: box, fadeSpeed: 500}).then(box => fadeOut({element: box, fadeSpeed: 300}))
No arguments required, but you may give 1 or 2 arguments to fadeToggle, fadeIn, and fadeOut:
fadeIn({
element,
fadeSpeed,
direction,
easing,
delay = 0,
preventDisplayNone,
visibleDisplayValue = 'block'
})
dom-fader removes the DOM-fader-hidden CSS class from all elements before printing and adds them back after printing
FAQs
Plain JavaScript version of jQuery's fadeToggle(), fadeIn(), & fadeOut(), but without all the baggage.
The npm package dom-fader receives a total of 3 weekly downloads. As such, dom-fader popularity was classified as not popular.
We found that dom-fader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.