[](https://www.npmjs.com/package/@cervisebas/nodegui-plugin-animation)
npm install @cervisebas/nodegui-plugin-animationsh
npm install @cervisebas/nodegui-plugin-animation
`
Demo
`ts
import { QPropertyAnimation } from '@cervisebas/nodegui-plugin-animation';
import { QPushButton } from '@nodegui/nodegui';
const animation = new QPropertyAnimation();
const button = new QPushButton();
button.setText('Animated Button');
button.show();
animation.setPropertyName('windowOpacity');
animation.setTargetObject(button);
animation.setDuration(5000);
animation.setStartValue(0.4);
animation.setKeyValueAt(0.5, 1.0);
animation.setEndValue(1.0);
animation.start();
Object.assign(global, {
button: button,
animation: animation,
});
``