This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyUpDownFunction(){ | |
var top-height= $('header-div-element').position().top + <any-other-custom-height>; | |
if( $(window).scrollTop() > top-height ){ | |
$('#your-div').slideDown(); | |
}else{ | |
$('#your-div').slideUp(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- first create a div element --> | |
<div class="myClass" data-text="put the message here"><!-- You can call the data attr using content attr in css --> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box" data-message="hello there want to try me..??"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$unitless: 16; // resize to your desire need | |
$font-size-unit: $unitless + 0px; | |
@function rem($valuePixels, $context: $font-size-unit, $em: false, $per: false, $pt: false) { | |
@if (unitless($valuePixels)) { | |
$valuePixels: $valuePixels * 1px; | |
} | |
@if (unitless($context)) { | |
$context: $context * 1px; |