Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- document.addEventListener('DOMContentLoaded', function() {
- jQuery(function($){
- $('.form-section .about-one__form-content a.thm-btn').click(function(){
- $(this).closest('.elementor-section').next().slideToggle();
- $(this).toggleClass('opened');
- if( $(this).hasClass('opened') ) {
- $("html, body").animate({ scrollTop: $(this).closest('.elementor-section').next().offset().top-100 }, 1000);
- }
- });
- $('.closebutton').click(function(){
- $(this).closest('.elementor-section').prev().find('.form-section .about-one__form-content a.thm-btn').click();
- });
- $('.form-section .about-one__form-content a.thm-btn').removeAttr("href");
- });
- });
- </script>
- <style>
- .about-one__form-content a.thm-btn , .fee-section i , .fee-section img, .closebutton a, .closebutton i, .closebutton img{
- cursor: pointer;
- -webkit-transition: transform 0.34s ease;
- transition : transform 0.34s ease;
- }
- .opened i , .opened img , .opened svg{
- transform: rotate(90deg);
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment