Tumult Hype Animations Wordpress Plugin

In the plugin section of your self-hosted Wordpress site, you can download our new plugin by searching for Tumult Hype:

If you're curious about the manual (and difficult) method of embedding, visit this post.

Using the Plugin

Prefer a video? Watch this tutorial

First, export your Hype document as a OAM widget without spaces (or the _ character in the file name:

Click the Hype Animations Admin section, Click 'Upload' at the top, then drag your documentname.oam file right onto the modal that appears. This will provide you with a shortcode you can use in posts and pages. Or in your theme by inserting this format:

<?php echo do_shortcode( '[hype_animations_anim="12"]' ); ?>

Responsive Document Tips

If you're using Only Flexible Layouts in Hype and you have your height set to 100%, you will likely hit an issue where the Hype document won't appear at all. This is because the height of the document is 0 pixels, if no height is set. To fix this, you have a few options:

  • You can set a CSS class on a specific Hype element by filling in a CSS class in the 'Container CSS class' input form:

Next, go to your Wordpress theme's CSS, and insert:

.minheight400 { height:400px; }

Planning Responsive Documents | If you add this Hype document to your Hype Animations plugin, it will help you plan your document's responsive settings when embedding in a post or page: SizeDetector.zip (277.3 KB). What this does is show you exactly the width and height of the space your Hype document will occupy. Resize your browser window's width to see it in action.

  • Another option: You could also dynamically set the height of the object based on a ratio of the viewport height. More info on that here.

Security Recommendation

Since this plugin allows uploading files to your Wordpress site, you may want to restrict to only certain users, or enable this option in Wordfence, a popular security tool for locking down Wordpress, to ensure files cannot be executed from the /uploads/ folder.

Including Head HTML & External CSS

By default, nothing that you include in the <head> of your document will be included in your embedded Hype document since that content is not included on the page. If you have JavaScript, CSS, or Font files loaded from the head of your exported Hype HTML, you'll need to embed your Hype document using the 'iframe' method. In the list of your documents, switch from <div> to <iframe>.

If you're using jQuery within your Hype project, you may need to adjust how you reference jQuery selectors themselves. Check out @MarkHunte's guide here.

Dataset Parameters

Do you want to open a specific scene or pass data to your animation? Please see @MaxZieb's excellent extension:

Example: [hypeanimations_anim_dataset id="X" key1="value1" key2="value2"]

Troubleshooting

  • Standard file types are allowed in your Tumult Hype documents, but server scripts like .php and non standard files are not allowed. Please see this post for more info.
  • Some Wordpress optimization plugins like JCH Optimize and the 'Autooptimize' plugin will cause issues with embeds. Workaround here.
  • Responsive documents work: Your DIV dimensions will reflect your scaling percentage numbers. But make sure you read the 'Responsive Document Tips' above and the next bullet point:
  • Using a percentage-based height in a responsive document will cause issues. If possible, only set scaling on the width dimension for your document. This post explains some of the issues when working with responsive documents in Wordpress themes and workarounds.
  • To switch from a <div> embed method to an <iframe> method, select the dropdown menu and click 'update' after choosing a new option:
    Screen Cast 2020-04-16 at 11.24.58 AM
  • If you're hitting an issue where embedded documents aren't showing up, look at your developer console and see if you hit any Filename.js is not allowed by Access-Control-Allow-Origin errors. To fix this specific issue, you'll need to adjust your Cross Origin Resource Sharing settings. (see this page)
  • jQuery Not working? Read this guide by @MarkHunte.

Translations or Pull Requests:

If you would like to help translate this plugin into additional languages or contribute programming support, please see this page: Language Support: Translations for the Tumult Hype Animations Wordpress Plugin

Bug Reports:

Please include your Wordpress version, any uploads you attempted, steps to reproduce the problem, and screenshots if helpful. To submit a bug report on Github, visit this page. Thanks!

6 Likes
Embedding Tumult Hype animations with H5P for Wordpress
Responsive and full screen
Bug plugin "Tumult Hype Animations"
Help: My animation is no longer displayed in the browser?
OAM Files Not Working In Divi Module
.oam into Wordpress site / responsive aint work
Wordpress plugin not working at all in WordPress Site
Exporting FAQ: Guides for exporting to Websites, Apps, Content Management Systems, and more
Hype is vector based software - right? Does this apply to exporting .oam as vectors to WordPress as well?
Can't get scalable OAM to work
Hype Wordpress PlugIn
Exporting to OAM | WP
100% width and height not working in wordpress?
Hype on Wordpress site stopped loading
Animation in Wordpress site
The wordpress plugin does not show the whole OAM file in web
Embedding Panellum in Wordpress
Not showing on Wordpress
Drag and drops not working when served online server. Works locally
Responsive documents and Wordpress
Not showing on Wordpress
How to make float action button?
Minimum Height for Wordpress Embed (Wordpress Plugin)
Hype Clip Path (for the Vector-Tool)
Is it possible to embed an external js-library when embedding on a Wordpress Site?
Troubleshooting Responsive document in Wordpress Plugin
Hype 4 Pro animations getting 404 errors for Hype Javascript on Wordpress sites
Why lesser examples available making a simple website with Hype? Are there known drawbacks/limitations?
Hype Global Behavior (Custom Behavior Extension)
Can't get scalable OAM to work
How are you integrating Hype animations into modern websites?