1.0.17 • Published 4 months ago

screen_color_plugin v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

SCREEN COLOR PLUGIN

Downloads

Elevate your website's aesthetics with the Screen Color Plugin – a robust jQuery tool that seamlessly integrates a screen color change button, bringing an engaging visual element to your web pages. he plugin now includes a button for automatic color change, cycling through colors every 2 seconds.

Explore the live example at Screen Color Button.

If you find value in this plugin, consider contributing to support ongoing enhancements. Your donation helps us maintain and improve the plugin for the community.

Donate

Donation Counter

New Features

Automatic Color Change Button The plugin now includes a button for automatic color change, cycling through colors every 2 seconds.

Code Refactoring and Cleanup

The code has been reviewed and optimized for improved readability and performance.

General Features

Manual Color Change Button

The plugin provides an interactive button allowing manual change of background colors.

Automatic Color Change Button

In addition to manual control, the plugin now includes a button to start or stop automatic color transition.

Text Color Change for Contrast

Text automatically adjusts to ensure proper contrast with the selected background color.

Customization

Background Color Adjustment

Personalize background colors to suit your preferences by adding or removing options.

Transition Time Adjustment

Configure transition times to control the speed of the animation.

Text Color Adjustment

Modify text colors to ensure optimal visibility and contrast with the selected background color.

Installation

  1. NPM:

    • Run npm install screen_color_plugin to install the plugin.
  2. Initialization:

    • Include jQuery and the plugin script in your HTML.
    • Select the desired button using jQuery and call the screenColorChange() method to activate the plugin.

      <script src="path/to/jquery.min.js"></script>
      <script src="path/to/my-plugin.js"></script>
      <script>
       $(document).ready(function () {
         $("#scrollDownButton").screenColorChange({
           colors: [
             { name: "blue", color: "rgb(43, 174, 226)" },
             { name: "green", color: "rgb(43, 226, 113)" },
             { name: "yellow", color: "rgb(177, 226, 43)" },
             { name: "purple", color: "rgb(159, 43, 226)" },
             { name: "red", color: "rgb(214, 40, 40)" },
             { name: "black", color: "#080808" },
           ],
         });
      
         var autoChangeEnabled = false;
      
         $("#autoColorChangeSwitch").on("click", function () {
           autoChangeEnabled = !autoChangeEnabled;
      
           if (autoChangeEnabled) {
             // Inicie a mudança automática de cor
             startAutoColorChange();
           } else {
             // Pare a mudança automática de cor
             stopAutoColorChange();
           }
         });
      
         function autoChangeColor() {
           setInterval(function () {
             $("#scrollDownButton").click();
           }, 2000); // Mude a cor a cada 2 segundos
         }
      
         // Adicione esta função para parar a mudança automática de cor
         function stopAutoColorChange() {
           console.log("Parando a mudança automática de cor");
         }
       });
      </script>

User Experience

Immerse your users in an interactive journey with the Screen Color Plugin. Create a visually appealing website that leaves a lasting impression.

Contribution

Feel free to contribute with improvements, bug fixes, or new features. Open an issue or submit a pull request! Drop a message and let us know how you're using it! Let's collaborate!

Support

For support, send me an email.

License

This project is licensed under the MIT License, by Biasiolo.

1.0.17

4 months ago

1.0.16

4 months ago

1.0.15

4 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago