fix #33: Add credit to mouse tracking snippet
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -115,7 +115,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</code></pre> <h4 data-type="Demo">Demo</h4> <div class="snippet-demo"> <div class="snippet-demo__horizontal-and-vertical-centering"> <p class="snippet-demo__horizontal-and-vertical-centering__child">Centered content.</p> </div> </div> <h4 data-type="Explanation">Explanation</h4> <ol> <li><code>display: flex</code> enables flexbox.</li> <li><code>justify-content: center</code> centers the child horizontally.</li> <li><code>align-items: center</code> centers the child vertically.</li> </ol> <h4 data-type="Browser support">Browser support</h4> <div> <div class="snippet__browser-support"> 97.8% </div> </div> <p><span class="snippet__support-note">⚠️ Needs prefixes for full support.</span></p> <ul> <li> <a href="https://caniuse.com/#feat=flexbox" target="_blank">https://caniuse.com/#feat=flexbox</a> </li> </ul> </div> <div class="snippet"> <h3 id="mouse-cursor-gradient-tracking">Mouse cursor gradient tracking</h3> <p>A hover effect where the gradient follows the mouse cursor.</p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><button class="mouse-cursor-gradient-tracking">
|
||||
</code></pre> <h4 data-type="Demo">Demo</h4> <div class="snippet-demo"> <div class="snippet-demo__horizontal-and-vertical-centering"> <p class="snippet-demo__horizontal-and-vertical-centering__child">Centered content.</p> </div> </div> <h4 data-type="Explanation">Explanation</h4> <ol> <li><code>display: flex</code> enables flexbox.</li> <li><code>justify-content: center</code> centers the child horizontally.</li> <li><code>align-items: center</code> centers the child vertically.</li> </ol> <h4 data-type="Browser support">Browser support</h4> <div> <div class="snippet__browser-support"> 97.8% </div> </div> <p><span class="snippet__support-note">⚠️ Needs prefixes for full support.</span></p> <ul> <li> <a href="https://caniuse.com/#feat=flexbox" target="_blank">https://caniuse.com/#feat=flexbox</a> </li> </ul> </div> <div class="snippet"> <h3 id="mouse-cursor-gradient-tracking">Mouse cursor gradient tracking</h3> <p>A hover effect where the gradient follows the mouse cursor.</p> <p> <small class="snippet__credit"><strong>Credit:</strong> <a href="https://codepen.io/electerious/pen/MQrRxX" target="_blank">Tobias Reich</a> </small> </p> <h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><button class="mouse-cursor-gradient-tracking">
|
||||
<span>Hover me</span>
|
||||
</button>
|
||||
</code></pre> <h4 data-type="CSS">CSS</h4><pre><code class="lang-css">.mouse-cursor-gradient-tracking {
|
||||
|
||||
@ -574,6 +574,11 @@ in any specification.</span></p>
|
||||
<div class="snippet">
|
||||
<h3 id="mouse-cursor-gradient-tracking">Mouse cursor gradient tracking</h3>
|
||||
<p>A hover effect where the gradient follows the mouse cursor.</p>
|
||||
<p>
|
||||
<small class="snippet__credit"><strong>Credit:</strong>
|
||||
<a href="https://codepen.io/electerious/pen/MQrRxX" target="_blank">Tobias Reich</a>
|
||||
</small>
|
||||
</p>
|
||||
<h4 data-type="HTML">HTML</h4><pre><code class="lang-html"><button class="mouse-cursor-gradient-tracking">
|
||||
<span>Hover me</span>
|
||||
</button>
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
|
||||
A hover effect where the gradient follows the mouse cursor.
|
||||
|
||||
<small class="snippet__credit">**Credit:** [Tobias Reich](https://codepen.io/electerious/pen/MQrRxX)</small>
|
||||
|
||||
#### HTML
|
||||
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user