Amr wagdy Posted December 16, 2024 Posted December 16, 2024 Hello GSAP Community, I’m trying to create an animated ECG (Electrocardiogram) using GSAP and am facing some challenges. My goal is to animate a line (or set of lines) that mimics the classic ECG waveform, similar to what you see in medical monitors, and have it loop or animate continuously in real time.
GSAP Helper Posted December 16, 2024 Posted December 16, 2024 Check out the DrawSVG plugin https://gsap.com/docs/v3/Plugins/DrawSVGPlugin/ If you still need help please provide a minimal demo, with what you've tried and someone will surely point you in the right direction. If you're new to GSAP check out this awesome getting started guide https://gsap.com/resources/get-started/ Please don't include your whole project. Just some colored <div> elements and the GSAP code is best. See if you can recreate the issue with as few dependencies as possible. Start minimal and then incrementally add code bit by bit until it breaks. Usually people solve their own issues during this process! If not, at least we have a reduced test case which greatly increases your chances of getting a relevant answer. See the Pen aYYOdN by GreenSock (@GreenSock) on CodePen. that loads all the plugins. Just click "fork" at the bottom right and make your minimal demo: Using a framework/library like React, Vue, Next, etc.? CodePen isn't always ideal for these tools, so here are some Stackblitz starter templates that you can fork and import the gsap-trial NPM package for using any of the bonus plugins: React (please read this article!) Next Svelte Sveltekit Vue Nuxt Please share the StackBlitz link directly to the file in question (where you've put the GSAP code) so we don't need to hunt through all the files. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. ✅
Solution Rodrigo Posted December 16, 2024 Solution Posted December 16, 2024 Hi, An oldie but goodie for this:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now