Live preview
Preview settings
Changes appear as you type. Use Tab to test keyboard focus.
⌘ / Ctrl + S saves locally
Open file · vinodjangid07
HTML, CSS or Tailwind, and a little JavaScript. One button or a group of up to six.
By vinodjangid07
Button submission checks
Checks will appear after the preview updates.
Buttons only: no full pages, forms, cards or navigation. Put scripts in the JavaScript tab. Tailwind uses utilities from HTML and JavaScript; use complete class names. Custom CSS supports plain CSS, without @apply, imports or plugins.
Accessibility quick check
Waiting for the rendered preview…
Try Tab, Enter and Space in the preview. Check the focus ring, hover and disabled states, then enable Reduce motion. These checks are guidance, not an accessibility certification.
Explore freely here. Remix to publish your version with credit to the creator.
About Open file · vinodjangid07
Open file · vinodjangid07 is an animated CSS button by vinodjangid07. Preview the interaction, customize its HTML, styles and JavaScript, or download the files with creator credit.
- Effects and categories
- Hover effects, Icon
- Using this example
- Copy the HTML or download index.html, style.css and app.js. Test keyboard focus, motion and contrast in your own project.
Usage, Tailwind and licensing questions
Read the source files
HTML
<button class="open-file">
<span class="file-wrapper">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 71 67">
<path stroke-width="5" stroke="black" d="M41.7322 11.7678L42.4645 12.5H43.5H68.5V64.5H2.5V2.5H32.4645L41.7322 11.7678Z"></path>
</svg>
<span class="file-front"></span>
</span>
Open file
</button>CSS
.open-file {
background-color: rgb(255, 255, 255);
width: 140px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
border: 1px solid rgb(217, 217, 217);
font-size: 15px;
cursor: pointer;
transition: all 0.3s;
border-radius: 10px;
}
.file-wrapper {
width: 15px;
height: auto;
display: flex;
align-items: flex-end;
justify-content: center;
position: relative;
}
.file-wrapper svg {
width: 100%;
}
.file-front {
position: absolute;
width: 100%;
height: 70%;
border: 2px solid rgb(0, 0, 0);
border-bottom: 1px solid black;
transform: skewX(-40deg);
transform-origin: bottom right;
background-color: white;
transition: all 0.5s;
bottom: 0;
}
.open-file:hover .file-front {
height: 50%;
transform-origin: bottom right;
transform: skewX(-55deg);
}
.open-file:hover {
box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.048);
}