Femtality- -v0.16.1- By Aerisetta ✧ «DIRECT»

Example: focus-pulse behavior

// bindText attaches to an element and updates its text content bindText(document.querySelector('#count'), count);

const count = state(0);

import { useEffect } from 'react'; import { state } from 'femtality';

// usage const input = document.querySelector('input'); focusPulse().attach(input); CSS: FEMTALITY- -v0.16.1- By Aerisetta

import { state, transition, bindStyle } from 'femtality';

import { behavior } from 'femtality';

React example (hooks wrapper):

// bindStyle sets inline style properties reactively bindStyle(document.querySelector('.bar'), t => ({ width: `${progress.value}%` })); Example: focus-pulse behavior // bindText attaches to an

function useFemtState(initial) { const s = state(initial); useEffect(() => () => s.destroy && s.destroy(), []); return s; }