first commit
This commit is contained in:
27
resources/assets/js/demos/demo-law-firm-2.js
Normal file
27
resources/assets/js/demos/demo-law-firm-2.js
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
Name: Law Firm 2
|
||||
Written by: Okler Themes - (http://www.okler.net)
|
||||
Theme Version: 12.1.0
|
||||
*/
|
||||
|
||||
(($ => {
|
||||
/*
|
||||
* Custom See More Overlay
|
||||
*/
|
||||
$('.custom-seemore-overlay-button').on('click', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
const $this = $(this), $wrapper = $this.closest('.custom-seemore-overlay');
|
||||
|
||||
$wrapper.addClass('active');
|
||||
|
||||
setTimeout(() => {
|
||||
$this.closest('.custom-seemore-overlay').animate({
|
||||
'max-height': $wrapper[0].scrollHeight
|
||||
}, () => {
|
||||
$this.remove();
|
||||
$wrapper.closest('.custom-seemore-overlay').css('max-height', 'none');
|
||||
});
|
||||
}, 200);
|
||||
});
|
||||
})).apply( this, [ jQuery ]);
|
Reference in New Issue
Block a user