Make your DOM look like an eye that can focus on anything
github.com
github.com
I would like to show you an animation library I developed.
It can make your DOM look like an eye that can focus on anything!
## Features
- Ability to watch mouse or another DOM or even input values, watch anything you want!
- Because it is DOM-based, it is easy to support RWD
- Supports multiple frameworks
- vanilla.js
- react
- vue
- Zero dependency (every framework is!)- Written in typescript
- The size of the core code is only 3kb after gzip compression
- If the element is not on the screen, it will automatically stop running
You can see more on the GitHub Repo!!
You might like my library: https://creepyface.io. Similar concept. Also written in TypeScript with no dependencies.
"DOM look like an eye" means "DOM appears similar to an eye". I was expecting that you turned the whole page circular or something.
You not familiar with how eyes close?
I doubt the Amiga was the first computer to do this. Does anyone have any earlier examples?
[1] - http://aminet.net/package/util/misc/MaxonMAGIC - uploaded in 1993
[1] https://www.x.org/releases/X11R7.5/doc/man/man1/xeyes.1.html
"Alan Rath had two works, Word Processor and Bird Cage (see Figure 21) in the show. Bird Cage is a kinetic work created from a microcomputer, digital frame store, and a speech synthesizer. A solenoid system moves the one-inch video monitor inside the cage. The amount of movement is controlled by the intensity of ambient light. The video bird displays a human eye, which looks about and blinks."
[1] - https://history.siggraph.org/wp-content/uploads/2017/03/SIGG... (page 23)
Here's an example: https://peeryview.org/about
In an attempt to make this comment slightly less spammy, I think that it's easier to create this effect in a web page if the code makes good use of radial gradients. Both SVG and the 2D canvas API use a 'two circles' approach to defining the gradient (interactive demo here[2]); the CSS approach, however, seems a lot less intuitive to me[3] - can I assume there were good reasons why the CSS committee chose to do it this way?
[1] - https://codepen.io/kaliedarik/pen/XWgoLjE
[2] - https://scrawl-v8.rikweb.org.uk/demo/canvas-004.html
[3] - https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/ra...
Probably means that Ubuntu 22.04 LTS is using Wayland, and xeyes is running under Xwayland, and because of that xeyes is only getting access to cursor information when the cursor is over the window.
- Wayland is the default in Ubuntu 22.04
- You can still choose to use an X11 session instead
- The XFCE4 window manager xfwm only works with X11
https://askubuntu.com/a/1421682
This is consistent with why xeyes works the way for you the way it always did, while it works differently for someone else.
It's possible to fetch the cursor position in the input.
wait until the project is a little more stable (more testing). I will do some refactoring and look into looking at this
If we're getting technical, it does not really look like breasts either!
when "wathcing-you" watching mouse, it really does look like `xeyes`.