GithubHelp home page GithubHelp logo

css-masks's Introduction

Color Mask Morph

A JavaScript application that allows you to change the background color with a custom widget, pick from a list of SVG mask shapes, change the shape color with a hex value, then add an image URL mask layer.

Features

  • This app is built using custom functions that listen for changes on the form drop-down and sanitized inputs.
  • The functions work together to apply the correct SVG mask to the image and color of your choosing.
  • You can and an image URL address (ending in .jpg or .png format) to create a mask layer on top of an image. (transparent PNG files work best)
  • Use the color picker widget to instantly change the background color while generating a hex code value that can be copied to the shape color input field.
  • Available shapes are: circle, square,triangle, diamond, pentagon, hexagon, octagon and star.

Version

  • 1.1 bug fixes: added conditional statement to set default slider and hex values to '00' on initialization

Live Demo

Try a live demo here: https://css-masks-jawaragordon.vercel.app/

Getting Started

  • Pick a shape from the drop-down menu.
  • Choose a background color by using the RGB color picker tool.
  • Enter a hex color (without the #) for the shape color. Press or tap enter/return.
  • The app will apply the selected mask shape and color to the background color of your choice.
  • Try different combinations of shapes and colors

[Optional]

  • Enter an image URL that ends with .jpg or .png file extension into the "Mask Image" input field.

Clone the repository here:


git clone https://github.com/JawaraGordon/css-masks

Built With

  • JavaScript
  • HTML
  • CSS

Contributing

•Fork the repository

•Create your feature branch (git checkout -b feature/new-feature)

•Commit your changes (git commit -am 'Add new feature')

•Push to the branch (git push origin feature/new-feature)

•Create a new pull request

License

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

See more of my apps and projects at https://www.jawaragordon.com/

css-masks's People

Contributors

jawaragordon 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.