GithubHelp home page GithubHelp logo

andrewjbateman / javascript-mousemove-shadow Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 214 KB

:clipboard: Javascript30 tutorial 16 from Wes Bos. Javascript code to move shadown around text when mouse is moved.

HTML 19.75% JavaScript 62.04% CSS 18.21%
javascript-mousemove-shadow css-text-shadow mouse-move mouse tutorial

javascript-mousemove-shadow's Introduction

โšก Javascript Mousemove Shadow

Wes Bos Youtube Tutorial: CSS Text Shadow on Mouse Move Effect - #JavaScript30 16/30.

  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

๐Ÿ“„ Table of contents

๐Ÿ“š General info

  • Tutorial Code using text-shadow property to move shadow around text when mouse is moved.

๐Ÿ“ท Screenshots

Example screenshot.

๐Ÿ“ถ Technologies

๐Ÿ’พ Setup

  • Open index.html in browser. If any code is changed the browser needs to be refreshed.

๐Ÿ’ป Code Examples

  • position of x and y coordinates includes offset from left and top.
  if (this !== e.target) {
    x = x + e.target.offsetLeft;
    y = y + e.target.offsetTop;
  }

๐Ÿ†’ Features

  • Can change colours and distance of shadows from header.

๐Ÿ“‹ Status & To-Do List

  • Status: Working.
  • To-Do: try different values in formulae to see effect on shadow, add other text properties.

๐Ÿ‘ Inspiration

๐Ÿ“ License

  • N/A

โœ‰๏ธ Contact

javascript-mousemove-shadow's People

Contributors

andrewjbateman avatar

Watchers

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