I’m trying to import a project from Tumult Hype (a folder of files that I’ve copied to RESOURCES in Elements).
I’ve created the custom html item on my page, inserted code and edited it to direct to the RESOURCES folder. But no luck, the html item does not appear to be picking up the Hype files. (Even when previewed.)
The attached image shows my code, with my edit highlighted.
Do you have a folder named Curling-infographic.hyperesources in your resources folder? If so, I’d get rid of that period, and I’d rename it so it doesn’t have a “resources” in the folder name.
My advice when you’re trying to match up your own special code against Element bits is to KISS (keep it simple silly). In other words, don’t put the script down two levels, put it at the top level with a very simple name (e.g. script.js and thus resources/script.js?####). I say that because the more you have to type, the more that syntax, folder dependencies, and typos can get in your way. Your first goal is to make sure that an idea works.
It might also help if we knew what was in the script.
and here you can download a demo project with a custom component (HTML) with a tailwind version of the regular code generated by hype around the script, ( when save also the html file)
Embedding Tumult Hype Animations in ‘Custom Components’
When using Tumult Hype animations inside Elements Custom Components, the exported Hype files must be placed inside the /resources/ directory and referenced using the animation folder name
by default, Hype generates the folder containing the resources with two compound names joined by a period. Simply remove this and update the link with the correct folder name (which should be simple).
I’ve simplified the file name and adjusted the code to better match your example. It’s working now, but only when I preview in a browser, so I’m not sure at what point the problem was actually fixed!
I’m always impressed when somebody helps me with stuff I just don’t get. Which is often, and I spend way too much time trying to figure it out on my own and I just don’t have the brain power any more Aging sucks.
no problem , if you have problems with managing the original file, you can send it to me by mail, in case drop me a private message.
I’m also thinking about creating a component specifically for Hype that makes loading animations easier. If you use simple names, it’s possible to create fields, but I’ll have to working on it.