Ways to achieve a blurry effect on CSS overflow content that is visible

I have two div elements - one called "divimg" which is fixed, and the other called "drag" which contains an image. I am currently using this image for dragging and resizing, with overflow set to visible on the divimg.

My question is, how can I blur the visible content within the red bordered area?

Here is the code I am working with, any suggestions would be appreciated:

 <script type="text/javascript">
    $(document).ready(function () {
        $("#drag").draggable({ cursor: "move" });
        $("#displayimg").resizable({ aspectRatio: true, handles: "all", maxHeight: "600", maxWidth: "600", minHeight: "100", minHeight: "100" });
    });
 </script>

<style type="text/css">
.draggable
    {
        cursor: hand;
        overflow: visible;
      left:22%;
      top:50%;
          cursor: pointer;
    }
    .resizable
    {
        width: 320px;
        height: 200px;
      /* border: 1px solid #bb0000;*/
        overflow: visible;


    }
    .resizable img
    {
        width: 100%;
        height: 100%;
    }
    .ui-resizable-handle
    {
        background: #065909;
        border: 3px solid #fff;
        border-radius:15px;

        width: 9px;
        height: 9px;
        cursor: pointer;
        z-index: 2;
    }

</style>

<form id="form1" runat="server">

<div>

 <asp:Panel ID="Panel3" runat="server" Height="373px" Width="518px" style="margin-top: 0px; margin-left: 0px; text-align: center; overflow:hidden"  >
 <div id="divimg" style=" height: 5.5cm; width: 8.6cm; left: 20%; position: relative; top: 68px; overflow:visble;"  >

         <div id="drag" class="draggable" >
         <div id="res" class="resizable" style="position:relative; overflow:visible; ">

         <asp:Image ID="displayimg" runat="server" Height="224px" Width="340px" src="images/group1.jpg" style="left:-3%; top:-3%; overflow:visible; " BorderStyle="Ridge" BorderWidth="2px"  />

         </div></div></div>
    </asp:Panel>     

 </div>
</form>

 </body>

SOMETHING LIKE THIS:

https://i.sstatic.net/b0F6c.png

I want to add a blur effect to the red bordered area in the image above. Any suggestions?

Answer №1

Finally, I found the solution to my problem.

.main_container{width:500px; height: 250px;position: relative;}
.main_container:after{content:"";border:60px solid rgba(255,255,255,0.6);position: absolute; top: 0;width: 350px;height: 150px;}
img{width: 100%;position:}
 <div class="main_container">
       <img src="https://coolimages.com/3d-animated-lion.jpg"/>
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Eliminating redundancy in nested conditions

How can a nested conditional like the one below be optimized for improved performance and readability? To enhance efficiency, it would be beneficial to consolidate repetitive entries into a more practical function due to loops within many potential cases. ...

Unable to retrieve data from a nested object within a JSON structure

In my React project, I have created a function component like the one below: function FetchData() { const [randomUserData, setRandomUserData] = useState(''); const url = 'https://randomuser.me/api/'; const fetchData = () => { ...

Currently, I'm attempting to figure out a way to create a CSS string in my MVC ASP.NET project. Any ideas or suggestions are greatly appreciated

I am currently exploring solutions to generate a CSS string in my ASP.NET MVC Web Application. Specifically, I am interested in creating this at the selector level. For instance, I might have a class named "TableFormat" with the following CSS properties: ...

What is causing the Dropdown button not to appear?

I'm facing a challenge that I need assistance with, so I'm reaching out for help. Currently, I am working on a website project using Asp.net Mvc project for Movies, Actors, and Producers. I've added a dropdown button but it's not funct ...

JavaScript code that loads a specific DIV element only after the entire webpage has finished loading

How can I ensure that the DIV "image" is loaded only after the entire page has finished loading? What JavaScript code should I use? <div class="row"> <div class="image"> CONTENT </div> </div> I plan to execute the functio ...

Using AngularJS Directive to Enhance jQuery Cycle Plugin

Using AngularJs and JQuery Cycle Plugin, I successfully built a site. However, when I moved my html partials into separate folders, the jQuery Cycle plugin suddenly stopped functioning. After doing some research, I realized that I needed to create a direct ...

The code behind in VB.NET does not get called by JQuery-Ajax

I am facing an issue and need some assistance. I am trying to call the AktualisiereSilomethode from the code behind in my project. It should return a list of strings, but instead, I keep getting an error. It seems like the ajax method is not calling the co ...

Showing a JavaScript variable on an HTML page

I have a challenge where I am attempting to showcase a variable using the code provided below: HTML: <div id="MyEdit">Money</div> JS: var price1 = 0; var current_value=document.getElementById("MyEdit").innerHTML; if (current_value == "msc" ...

Conceal a div when clicked outside using TypeScript with Next.js and Tailwind CSS

I am currently working on a modal using TypeScript, Next.js, and Tailwind CSS. My goal is to hide the modal when I click outside of it. However, I am encountering some errors related to types and other issues in my TSX file. The functionality works perfec ...

Click on a link to navigate to a new page using the useNavigate hook in

I have successfully implemented navigation using the useNavigate hook, but I am wondering if there is a way to open the URL in a new tab instead of the current one. Is this achievable? Here's my code: import { useNavigate } from "react-router-do ...

Transforming the text color after clicking on it on Squarespace - here's how to do it!

How can I make text change color upon clicking in Squarespace? Where should I place the block id in the code to target a specific block? Check out the code snippet I've been experimenting with: <script> document.getElementById('chang ...

What is the best approach to transform an HTML textarea value into JSON format?

Client .. inserting some content into a form <textarea name="data"></textarea> After typing the following data into the textarea: {title: 'Hello one!', author: 'someone'} {title: 'Hello two!', author: 'mygf ...

Automatically resizing font to fit the space available

I am attempting to achieve the task described in the title. I have learned that font-size can be set as a percentage. Naturally, I assumed that setting font-size: 100%; would work, but unfortunately it did not. For reference, here is an example: http://js ...

Receiving a blank string after calling fs.readFile within the chokidar.watch(path_file).on('change', ...) function

This is my current Node project setup: https://github.com/tlg-265/chokidar-issue https://i.stack.imgur.com/qYKlR.png $ git clone https://github.com/tlg-265/chokidar-issue $ cd chokidar-issue $ npm i $ npm run watch-changes The project monitors changes ...

Restrict the frequency of requests per minute using Supertest

We are utilizing supertest with Typescript to conduct API testing. For certain endpoints such as user registration and password modification, an email address is required for confirmation (containing user confirm token or reset password token). To facilit ...

The condition is not established by the Firestore where clause

I'm working on a function that includes two where clauses. My objective is to verify the existence of a document based on the presence of two specific IDs. However, when I execute the function, it retrieves all the records in the collection instead. C ...

Attempting to remove certain characters from a given string

let currentDate = new Date(); currentDate.toLocaleString; If I were to console log the value of currentDate, it would show: Wed Oct 16 2019 15:57:22 GMT+0300 (Israel Daylight Time) However, what if I only want to display the minutes and seconds like 57: ...

Obtain JSON information using an underscore template

As someone fairly new to using Backbone and Underscore, and web development in general, I am seeking guidance on how to retrieve individual model data on-click from a template format in order to populate a pop-up modal. Any advice or direction would be gre ...

Can CSS transitions be synced up to happen simultaneously?

Here is a snippet of code showcasing CSS transitions applied to the height property. It seems that CSS transitions work asynchronously, but I am curious if there's a way to make them synchronous without using jQuery or other methods. CSS: .animated ...

Tips for generating rows in an HTML table

I'm attempting to generate a table with 5 rows and 4 columns, displaying increasing multiples of a user-input number. While I can print the numbers successfully, they all appear in one column. I thought breaking up the loops would solve this issue, bu ...