Code Monkey home page Code Monkey logo

hypedocumentload's Introduction

Hype Document Load

Overview

The Hype Document Load extension is a very simple extension designed for Tumult Hype, enabling animators to easily manage and handle document load events within their Hype projects. This extension provides a streamlined way to execute functions when a Hype document is fully loaded, enhancing the interactivity and responsiveness of Hype animations and applications.

Features

  • Automatic Event Handling: The extension automatically attaches to the HypeDocumentLoad event, ensuring that your custom functions are called precisely when the Hype document finishes loading.
  • Easy Integration: Simply including the extension in your project allows you to start using its features without complex setup.
  • Function Invocation: The extension checks for a corresponding function in hypeDocument.functions() and executes it if present, allowing for a modular and organized approach to scripting.

Usage

To use the Hype Document Load extension in your Tumult Hype project:

  1. Include the Extension: Add the Hype Document Load JavaScript file to your project.
  2. Define Your Function: The resource panel define HypeDocumentLoad.
  3. Automatic Execution: On document load, your HypeDocumentLoad function will be automatically executed.

Example Hype Function:

function HypeDocumentLoad(hypeDocument, element, event) {
    // Your custom code here
};

Installation

  1. Download the HypeDocumentLoad.min.js file from the repository.
  2. Include the script in the head of your HTML or as an external JavaScript file in your Hype project.

Version History

  • 1.0.0: Initial release

License

This project is licensed under the MIT License - see the LICENSE file for details.

hypedocumentload's People

Contributors

worldoptimizer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.