npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

animoxjs

v1.0.4

Published

it is an library that helps in your easing the web development effects and animations

Downloads

10

Readme

Animox.js - Convert Your Long Javascript Code to One Liner

Animox.js Logo

Animox.js works like magic for frontend developers. Instead of spending lots of time writing complex code to create simple effects in web development, Animox.js condenses lengthy code into just a single line. This streamlines the development process, enabling developers to build better websites with less effort and time. This GitHub readme will walk you through the key aspects of using Animox.js in your web development journey.

Table of Contents

Introduction

Animox.js simplifies the process of bringing everyday cool effects into your web applications. With Animox.js, developers can effortlessly incorporate these effects without the need for complex and time-consuming coding, enhancing the overall user experience.

Installation

To use Animox.js in your project, you can include it in your HTML file via a CDN.

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/Animox.min.css">
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/Animox.min.js"></script>

Getting Started

Once you have included Animox.js in your project, you can start using its effects and functionalities. The library provides a straightforward API to make implementation easier.

// Example code to initialize Animox.js and use the cool effects.
// use $ for queryselector
$(".cursor").MouseFollower();

Required Libraries

To successfully run with CDN, you'll need some libraries.

<!--  Gsap is needed for Basic Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>

<!-- Scroll Trigger is needed for Scroll Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>

Mouse Follower

This feature creates smooth mouse follower, creating an engaging user experience, with different varities of mouse followers. it has total of Seven (7) Effects so please try it by yourself or refer our demo page for proper explanation

$(".cursor").MouseFollower({
  //Parameters are optional.
  style: 2, //(1 to 7)
  bgColor: "royalBlue" // it is application for only style 2 --> ["#0000", "#ffff". "ETC"]
});

Magnet Effect

The magnet mouse attractor effect draws elements towards the cursor, as if they are magnetically attracted, offering a unique and interactive experience.

$(".box").Magnet({
  //Parameters are optional.
  style: 2, //(1 to 2)
  ease: "cubic-bezier(0.23, 1, 0.320, 1)",
  duration: 1,
});

Text Effects

The text Effect animates text with cool animation , with many different animations.

//style 1
let Text = document.querySelector(".text h2"); // for single element
let MText = document.querySelectorAll(".text h2"); // for multiple Elements

TextEffect(MText, {
    style: 1, // or any other style you want to apply
});

Sticky Navbar Effect

This will help you to change your navbar color based on the scroll.

$(".main").StickyNav({
    //parameters are optional
    style: 1 //(1 to 2)
})

Scrolling

These helps in ease of including locomotive and scrollTrigger together and Lenis and Gsap together, using a single line of code.

<!-- Add this files in same order for the proper working of the Animox library -->

<!-- for including locomotive and scrollTrigger along first include this libraries -->
<!-- Animox Js -->
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/Animox.min.js"></script>

<!--  Locomotive is needed for Scrolling Effects -->
 <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/locomotive-scroll.js"></script> 
<!--  Gsap is needed for Basic Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<!-- Scroll Trigger is needed for Scroll Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<!-- for including Lenis and Gsap along first include this libraries -->
<!-- Animox Js -->
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/Animox.min.js"></script>

<!--  Gsap is needed for Basic Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<!-- Scroll Trigger is needed for Scroll Effects -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<!--  Lenis is needed for Scrolling Effects -->
<script src="https://unpkg.com/@studio-freight/[email protected]/dist/lenis.min.js"></script> 
$(".main || selector").Scroll({
    //parameters are optional
    style: 1 //(1 to 3)
})

Text Split

This feature helps in splitting the text into Single Character without using any other library.

<h1>
  This is a Demo text and this will be separated into each Character.
</h1>
$("h1 || Enter an Element").TextSplit();

Scroll To Top

This feature helps you to scroll to top of the website.

$(".scrollTop").ScrolltoTop({
    //parameters are optionals
    style: 1 //(1 to 2)
}
);

Hover Effects

This feature helps you to add underline effects for the selected element.

let button = document.querySelector(".navbar ul li");

let Mbutton = document.querySelectorAll(".navbar ul li");

HoverEffect(Mbutton, {
    style:2,
    effect: "left",
});

OnHoverExpand Effect

This feature helps you to add onHover effects for the selected element.

$(".container .button").onHoverExpand( "Target-Element",{
  EbgColor: "#000",
  bgColor: "crimson",
  Ewidth: "250px"
}
);

Button Hover Effects

This feature helps you to add Button Hover effects for the selected element.

$(".btn").BtnHover();

Theme Toggler

This feature helps you to toggle from Dark Mode to Light Mode.

 // Initialize the ThemeToggler
  ThemeToggler.Mode({
    elements: ['body', '.navbar', '#element1', '#element2'],
    toggleButton: document.getElementById('toggleButton')   
  });

ImageTrail Effect

This feature helps you to add Image trail effects for the selected element(it should be either body or a container).

const images = [
    'Enter your pictures source or urls here',
    './imgs/people.jpg',
    'https://plus.unsplash.com/premium_photo-1703631159456-cd2437a37fbe?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwyMnx8fGVufDB8fHx8fA%3D%3D',
    'https://images.unsplash.com/photo-1707851621528-c50882570d7c?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwzNXx8fGVufDB8fHx8fA%3D%3D',
    'https://images.unsplash.com/photo-1669886912349-cb61c99e1186?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHwzOXx8fGVufDB8fHx8fA%3D%3D',
    'https://plus.unsplash.com/premium_photo-1707227792423-def236793f48?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw0N3x8fGVufDB8fHx8fA%3D%3D',
    'https://images.unsplash.com/photo-1706354924653-eab4b40d7cc6?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw2MHx8fGVufDB8fHx8fA%3D%3D',
];

$(".main").ImageTrail();

InfiniteCarousel Effect

This feature helps you to add InfiniteCarousel effects for the selected element it makes that element infinite scrollable.

$(".container").InfiniteCarousel({
  style: 1 //(1 to 2)
}
);

Image Slider Effect

This feature helps you to convert the selected element into Image Slider. it also contains an one line way to write the SwiperJs code

$(".container").ImageSlider({
  style: 1 //(1 to 2)
  
  slideWidth: "30%"//style 2 is used to swiper js
  SwiperHeight: "80%",//these are used in style 2 only
}
);

Updates

This library will be updated with many other features soon, so i hope you will share this library with your Developer friends.

Inspiration

This library is inspired by Shery.js created by Sheryians

Connect with him: Harsh's Linkedin Profile

Demos

For detailed usage examples and demos of each effect, check out the demos directory in the Animox.js repository.

Connect with me: [email protected]

Contributing

We welcome contributions from the community to enhance and expand Animox.js. If you encounter bugs, have feature suggestions, or want to contribute code, please check out our contribution guidelines for more information.

License

Animox.js is released under the MIT License. Feel free to use it in both personal and commercial projects.