Simply Stylish Scripting On Creepyface.io
JavaScript is used alongside CSS and HTML to form web pages that showcase ever more sophisticated effects and dynamic functionality as the years go by. What once had to be created within specialized software and exported as files with large digital footprints can now be expressed with interconnected files of the aforementioned three types. While visually appealing and responsive effects can be achieved through the functions offered by the three scripts' "baseline" forms, each of them can be expanded through customized packages to make specialized outcomes much more directly achievable. JavaScript, for example, can use "libraries" that arrange and package complex functions in a much more easily usable form for standard JavaScript authors.
The website at creepyface.io showcases a scripting effect that some feel is basic enough that it could have been achieved within the base version of JavaScript, but it still amounts to a basic demonstration of what can count as a functioning library. It showcases dozens of peoples' selfies that appear to follow along with the position of the user's mouse cursor as it moves within the window. Every depicted person on both the foreground and the green background has taken ten variations of their respective selfie, eight of which has a given person looking at a different 45-degree angle and the ninth and tenth of which usually has the person looking directly at the camera.
As the cursor moves around the photo collection, the selfie variations dynamically replace themselves with what is appropriate to give the impression that the people are noticing the cursor and following along with it. When the cursor has not moved for a moment, all selfies will adopt their "serious" variations, and more comedic variations will be displayed when the cursor is hovering over each of them. The single photo at the front can be swapped for one of the background photos by clicking on one of them. The website shows some of the HTML code used to define the different versions of a set of selfies, and it also lets the user use a connected web camera to upload their own photos. For more information click here https://creepyface.io/.