Skip to content

Instantly share code, notes, and snippets.

View joaopereirawd's full-sized avatar
💥

João Pereira joaopereirawd

💥
View GitHub Profile
@joaopereirawd
joaopereirawd / smoothscroll-alink.js
Created September 18, 2017 11:30
Smooth scroll to anchor link (Internal & external pages)

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@joaopereirawd
joaopereirawd / BasicInitialize.html
Last active September 27, 2017 04:03
Basic Initialize
<script>
$("#demo01").animatedModal();
</script>
@joaopereirawd
joaopereirawd / index.html
Last active August 29, 2015 14:15
Modal Structure
<body>
<!--Call your modal-->
<a id="demo01" href="#animatedModal">DEMO01</a>
<!--DEMO01-->
<div id="animatedModal">
<!--THIS IS IMPORTANT! to close the modal, the class name has to match the name given on the ID class="close-animatedModal" -->
<div class="close-animatedModal">
CLOSE MODAL
</div>
@joaopereirawd
joaopereirawd / animatedModal.html
Last active October 6, 2016 09:34
Include animatedModal.js
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="yourPath/animatedModal.min.js"></script>
</body>
@joaopereirawd
joaopereirawd / animatecss.html
Last active September 23, 2015 17:30
Include Animate.css on your document's <head>
<head>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css">
</head>