I have a recognition site with webcam. In this tutorial there is a good shutter affect. I have one simple button and one <div>
.
I want that when clicked button then div was shuttered. I tried a lot of times but I can't.
Anybody can help me ?
My division styles.
<div id="CustomWebCam" class="CustomWebCam">
.CustomWebCam{
padding: 1px 1px 1px 1px;
background-color: #f6c0c0;
height: 96%;
width: 900px;
display: inline-block;
margin: 1% 1% 1% 1%;
}
Just link the library and CSS:
The button:
The JS:
Working example.