Coder Social home page Coder Social logo

indamix / real-shadow Goto Github PK

View Code? Open in Web Editor NEW
1.1K 1.1K 123.0 492 KB

Module that casts photorealistic shadows

Home Page: https://indamix.github.io/real-shadow

License: MIT License

JavaScript 65.51% CSS 30.80% HTML 3.69%
box-shadow javascript jquery shadow text-shadow

real-shadow's Introduction

Hey hey ๐Ÿ‘‹

๐Ÿ’ป๐ŸŽน๐Ÿ”ˆ๐Ÿ”‰๐Ÿ”Š

real-shadow's People

Contributors

indamix avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

real-shadow's Issues

Inverse direction

Hello,

I don't know if the script is still maintained...
Anyway, is there a solution to inverse the shadow direction, in order to attract the shadow when the mouse moves?

Thank you in advance,
jB

shadows do not update when moved via JQuery

I'm on the newest update of Chromium on Ubuntu and it doesn't look like my shadows move when I update via JQuery with followMouse set to false. Is this because there's no correct way to handle such a thing?

This is all I've done so far:
http://dropcanvas.com/ewe8w (real-shadow and jquery script calls will need to be relinked)

edit: in fact, when followmouse is set to true and I move the box, it still acts as if it's in the same place

project demo page does not display properly in Chrome

project page http://indamix.github.com/real-shadow/ is not working, as newest Google Chrome refuses to run javascrip served as text/plain (and raw.github.com is doing exactly this).

Chrome console error:

Refused to execute script from 'https://raw.github.com/Indamix/real-shadow/master/realshadow.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. indamix.github.io/:1

Length setting not working...

It seems like the length setting is not working. I'm assuming it changes the length of the shadow, but I'm not seeing any results output when I try to adjust it.

Transforms

When using CSS transforms for example: when you rotate an element shadows are calculated wrong

Touch support

Any chance of touch support on iPad, iPhone, Android? Runs very nicely on desktops.

Changing shadow size

Hi, i'm trying to use your real-shadow code. But need the shadow to be like half the size... I tried to change some value but don't find how to do that...
I thought i just had to change the light distance... But doesn't work :(

Can you help me? Thanks a lot!

bug in example.html

shadows($('button, .container, .text'), { ...

change to the realshadow( ... )

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.