Project Axiom is a web component set which aims to combine good part of Fluent Design System and Material Design to a single design language.
This repo contains code of Reveal Highlight effect of Fluent design System.
In order to use this component, we need to prepare some HTML:
<ax-reveal-provider> <ax-reveal-bound class="my-reveal-container"> <ax-reveal> <button class="ax-reveal-button">Reveal</button> </ax-reveal> <ax-reveal> <button class="ax-reveal-button">To</button> </ax-reveal> </div> </ax-reveal-bound> </ax-reveal-provider>
.my-reveal-container{ --reveal-border-decoration-type: round; --reveal-border-decoration-size: 4px; }
.my-reveal-container{ --reveal-border-decoration-type: round; --reveal-border-decoration-top-left-radius: 0; --reveal-border-decoration-top-right-radius: 10px; --reveal-border-decoration-bottom-left-radius: 20px; --reveal-border-decoration-bottom-right-radius: 0; }
.my-reveal-container{ --reveal-border-decoration-type: bevel; --reveal-border-decoration-size: 16px; }
.my-reveal-container{ --reveal-opacity: 1.0; }
.colored-button1 { --reveal-color: red; } .colored-button2 { --reveal-color: #7cbb00; } .colored-button3 { --reveal-color: rgb(255, 187, 0); } .colored-button4 { --reveal-color: #00A1F1; }
.my-reveal-container{ --reveal-border-color: #FF00C1; --reveal-hover-light-color: #00B8FF; --reveal-press-animation-color: #FFFFFF; --reveal-opacity: 1.0; }
.my-reveal-container{ --reveal-border-width: 3px; }
.my-reveal-container{ --reveal-border-fill-radius: 0.2; }
.my-reveal-container{ --reveal-border-width: 0; }
.no-top { --reveal-border-top-type: none; } .no-bottom { --reveal-border-bottom-type: none; } .no-left { --reveal-border-left-type: none; } .no-right { --reveal-border-right-type: none; } .horizontal { --reveal-border-left-type: none; --reveal-border-right-type: none; } .vertical { --reveal-border-top-type: none; --reveal-border-bottom-type: none; } .only-top { --reveal-border-bottom-type: none; --reveal-border-left-type: none; --reveal-border-right-type: none; } .only-bottom { --reveal-border-top-type: none; --reveal-border-left-type: none; --reveal-border-right-type: none; } .only-left { --reveal-border-top-type: none; --reveal-border-bottom-type: none; --reveal-border-right-type: none; } .only-right { --reveal-border-top-type: none; --reveal-border-bottom-type: none; --reveal-border-right-type: none; }
.my-reveal-container{ --reveal-hover-light-fill-radius: 0.2; }
.my-reveal-container{ --reveal-hover-light: false; }
.my-reveal-container{ --reveal-animate-speed: 8000; }
.my-reveal-container{ --reveal-released-accelerate-rate: 20; }
.my-reveal-container{ --reveal-hover-light-fill-radius: 0.1; --reveal-press-animation-radius-mode: constrained; }
.my-reveal-container{ --reveal-press-animation: false; }
.my-reveal-container{ --reveal-diffuse: false; }