I am embarking on the journey of creating a website completely from scratch using html, css, and js with jQuery and other necessary libraries. My goal is to have all the code easily transferable and executable without the need for additional plugins or scripts. To achieve this, I have all required libraries (bootstrap, jQuery, and Vague.js) downloaded in a single folder for plug-and-play convenience.
On one of my pages, I have multiple images moving in a carousel-like fashion. These images dominate the page, with only the logo and menu buttons appearing alongside them. I am trying to implement a special effect where the screen/images are blurred out, leaving only a small circle around the cursor visible. While I have succeeded in blurring all the images and focusing them when the mouse hovers over them, I am struggling to isolate a specific portion of the image for focus.
Admittedly, my current method may not be the most efficient way to approach this issue. In order to smoothly operate the carousel across multiple pages, I had to duplicate all images and apply a CSS transform operation with keyframes to move them by -50%. This aspect could certainly be improved upon and can be disregarded for now. The snippet of code I currently have is as follows:
<div class="scrollWrapper">
<div id="scroll" class="imgScroll" onclick="toggleAnimation();">
<img class="scrollingImage" src="image1.jpg" alt="Window showcase image">
<!-- Additional image tags here -->
</div>
</div>
My latest idea involves blurring the div element with the class "scrollWrapper" and figuring out a way to highlight the area around the cursor. However, I am at a loss as to how to proceed with this approach.
I have explored various resources, including this post, but most solutions seem tailored for static images rather than the dynamic ones in my carousel setup. I am currently experimenting with Vague.js but have yet to find a solution that addresses my specific needs.
As someone who is relatively new to web development and has limited experience with JavaScript/jQuery, I must admit that I am feeling frustrated by my inability to solve this challenge. Before considering a complete overhaul of my approach, any assistance or guidance would be greatly appreciated.