Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
solid-transition-group
Advanced tools
Animation library influenced by React Transition Group and Vue Transitions for the SolidJS library.
Known limitation: Transition and Transition Group work on detecting changes on DOM children. Only supports single DOM child. Not Text or Fragments.
Animations aren't always smooth under rapid input still working on improving.
npm install solid-transition-group
OR
yarn add solid-transition-group
Props:
Events:
Usage:
<Transition>
serve as transition effects for single element/component. The <Transition>
only applies the transition behavior to the wrapped content inside; it doesn't render an extra DOM element, or show up in the inspected component hierarchy.
// simple CSS animation
<Transition name="slide-fade">{show() && <div>Hello</div>}</Transition>
// JS Animation
<Transition
onEnter={(el, done) => {
const a = el.animate([{ opacity: 0 }, { opacity: 1 }], {
duration: 600
});
a.finished.then(done);
}}
onExit={(el, done) => {
const a = el.animate([{ opacity: 1 }, { opacity: 0 }], {
duration: 600
});
a.finished.then(done);
}}
>
{show() && <div>Hello</div>}
</Transition>
Props:
<Transition>
except mode, appear.Events:
<Transition>
.Usage:
<TransitionGroup>
serve as transition effects for multiple elements/components.
<TransitionGroup>
supports moving transitions via CSS transform. When a child's position on screen has changed after an update, it will get applied a moving CSS class (auto generated from the name attribute or configured with the move-class attribute). If the CSS transform property is "transition-able" when the moving class is applied, the element will be smoothly animated to its destination using the FLIP technique.
<ul>
<TransitionGroup name="slide">
<For each={state.items}>{
item => <li>{item.text}</li>
}</For>
</TransitionGroup>
</ul>
FAQs
Components to manage animations for SolidJS
The npm package solid-transition-group receives a total of 7,678 weekly downloads. As such, solid-transition-group popularity was classified as popular.
We found that solid-transition-group demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.