Remove animation from WP theme (css) - css

I'm working on a Wordpress template with an animation on the frontpage. The animation loads the frontpage content (banner and newsletter) when you scroll. I wan't to remove the animation, but I can't find out in which CSS file the animation script is hided. Can anybpody please help me?
Thanks :))
http://funwithfelix.com/

Found inside helper.js
// Initializing waypoints to show/hide flowign panel above header
jQuery(document).ready(function($){
$(window).load(function(){
$('.site-header').waypoint(function(direction) {
if (direction == 'down') {
$('.panel-hidden').fadeIn();
} else {
$('.panel-hidden').fadeOut();
}
}, {
offset: function() {
return -$(this).height();
}
});
});
});

Related

Customize Embedded Zoom Meeting SDK with Component View in 2.2.0

When working with Embedded Zoom Component, the Zoom SDK return an element which you need to place it inside an html element
the problem is how to resize and position the returned component inside my code after rendering
const client = ZoomMtgEmbedded.createClient();
function getSignature(e) {
e.preventDefault();
// ... some code to get the signature
startMeetingZoomMtgEmbedded(response.signature);
}
function startMeetingZoomMtgEmbedded(signature) {
let meetingSDKElement = document.getElementById('meetingSDKElement');
client.init({
debug: true,
zoomAppRoot: meetingSDKElement,
language: 'en-US',
customize: {
meetingInfo: ['topic', 'host', 'mn', 'pwd', 'telPwd', 'invite', 'participant', 'dc', 'enctype'],
toolbar: {
buttons: [
{
text: 'Custom Button',
className: 'CustomButton',
onClick: () => {
console.log('custom button');
}
}
]
}
}
});
client.join({
apiKey: apiKey,
signature: signature,
meetingNumber: meetingNumber,
password: passWord,
userName: userName,
userEmail: userEmail,
tk: registrantToken,
success: (success) => {
console.log('success');
},
error: (error) => {
console.log(error);
}
});
}
return (
<div className="App">
<main>
<h1>Zoom Meeting SDK Sample React</h1>
{/* For Component View */}
<div id="meetingSDKElement"></div>
<button onClick={getSignature}>Join Meeting</button>
</main>
</div>
);
So my question is how to modify the style and the position of the component before or after the rendering of the code by the Zoom SDK.
For Resizing , You will find details in the following documentation link :
Zoom Documentation for resizing component view
For Positioning, You will find details in the following documentation link :
Zoom Documentation for positioning component view
The only way to resize camera view is editing #ZOOM_WEB_SDK_SELF_VIDEO id. So, you have to edit other classes also to make buttons, containers and etc resize like camera view does, but it is totally buggy and i don't think it is a good idea pay all this effort to a workaround, besides that, in next versions maybe they bring built in properties to do this job.
Just for example, this is the result when you change #ZOOM_WEB_SDK_SELF_VIDEO:
#ZOOM_WEB_SDK_SELF_VIDEO {
width: 720%;
height: 480%;
}
In general way, you can modify the style and position of your component by using reactive CSS styling.
In zoom way you can use (zoom web meeting SDK)
(a) "popper: {}" properties for positioning elements
(b) "viewSizes: {}" properties for default meeting canvas size
(c) for styling use "id" and "class" for reactive CSS styling
popper use:
client.init({
...
customize: {
video: {
popper: {
anchorElement: meetingSDKElement,
placement: 'top'
}
},
}
...
})
viewSizes use:
client.init({
...
customize: {
video: {
viewSizes: {
default: {
width: 1000,
height: 600,
}
}
},
}
...
})

Can't click on mobile menu when using anchor link directly on URL

I have an anchor link in my main menu to a contact form on my home page, when you go there from another page the "hamburger" icon becomes unclickable.
I'm using the "Shapely" theme for wordpress and I believe that there is a bug on it. I had already asked on their support forum but with no answer.
You can see what I'm talking about if you go to the demo site and add an anchor link to the URL on mobile view and try to click on the menu (it doesn't work).
https://colorlib.com/shapely/#any-id
I need a workaround for this. What can I do?
You have javascript error in file, named shapely-scr‌​ipts.js. javascript stopes executing code located after error in one file/<script></script> tags.
In your case, the ways to save all theme js functions and fixing errors, are:
1. First way:
Modify .js file of theme. Even after modification, if you'll update your theme, you'll lose all changes you made. Here is what you need to change:
Go to {your-website-folder}/wp-content/themes/shapely/assets/js/ using file manager/ftp connection and find shapely-scr‌​ipts.js file. After find this code in that file
// Smooth scroll
if ( '' !== window.location.hash ) {
element = $( '#site-navigation #menu a[href=' + window.location.hash + ']' );
if ( element ) {
scrollToID = '#' + element.data( 'scroll' );
$( 'html,body' ).animate( {
scrollTop: $( scrollToID ).offset().top
}, 2000 );
newURL = window.location.href.replace( window.location.hash, '' );
window.history.replaceState( {}, document.title, newURL );
}
}
It's starts on line 24 and endes on line 36, and replace with this one:
if ('' !== window.location.hash) {
element = $('#site-navigation #menu a[href=' + window.location.hash + ']');
if (element.length > 0) {
scrollToID = '#' + element.data('scroll');
$('html,body').animate({
scrollTop: $(scrollToID).offset().top
}, 2000);
}else {
element = $(window.location.hash);
if (element.length > 0) {
$('html,body').animate({
scrollTop: $(element).offset().top
}, 2000);
}
}
newURL = window.location.href.replace(window.location.hash, '');
window.history.replaceState({}, document.title, newURL);
}
After this changes your theme js file will work without any errors, which mean that hamburger menu will work, too.
2. Second way ( if you're using child theme ):
Copy file named shapely-scr‌​ipts.js ( mentioned in option 1 ) in some folder of your child theme. Make changes described in option 1 with copied file shapely-scr‌​ipts.js( in your child theme ). After this you'll need to prevent file in your parent theme from loading, and instead of it load file from child theme. This will always load your changed file, even when you update your parent theme

jquery.ui hide with fixed element

I want to use the hide() function of jquery to hide messages that are flashing on a page.
When I load the page, I want to display it for 5 sec then make it disapear.
$('#flash-message').show("clip");
setTimeout(function() {
$("#flash-message").hide("clip", { direction: 'vertical' }, 1000);
}, 5000);
It doesn't do the "animation" if I use a fixed or absolute position and I need to put the message on top of the page with a fixed position.
Is there a work around for that? Thanks for your help
To call events when the page loads use:
$(document).ready(function(){
//code here
});
If you only want to use "clip" try this:
$("#flash-message").hide("clip", {direction: "vertical"}, 5000)
or else try using animate:
$('#flash-message').animate({
opacity: 0.25,
direction: "left",
}, 5000, function() {
$(this).hide();
});
Or something more simple:
$("#flash-message").click(function() {
$("#flash-message").fadeOut("slow");
});

Ember modal only shows overlay

I'm having trouble showing a modal with Ember. I've followed the cookbook but when I click the button for the modal, it only shows the overlay and not the modal itself.
Here's my gist: https://gist.github.com/sunocean-sand/e11111cea44274417012
I appreciate your help!
I've got a similar implementation in one of my apps. Try changing your routes/application.js to the code below. I believe your problem is that you're not using Bootstrap's Programmatic API.
export default Ember.Route.extend({
actions: {
openModal: function(modal) {
this.render(modal, {
into: 'application',
outlet: 'modal'
});
return Ember.run.schedule('afterRender', function() {
Ember.$('.modal').modal('show');
});
},
closeModal: function() {
Ember.$('.modal').modal('hide');
return this.disconnectOutlet({
outlet: 'modal',
parentView: 'application'
});
}
}
});

Bootstrap Carousel blocking position:fixed

I made a wordpress theme with bootstrap, it uses carousel and affix.
Now, when the carousel changes slide, the .affix isn't working over that period, when the carousel has finished the transition, the div with position:fixed is displayed correctly again.
You can check it here:
http://hu.rundertisch.org/?page_id=106
The navigation on the left side gets the position:fixed when you scroll to the bottom.
Just wait until the transition of the background image starts then scroll down. You see that the menu isn't moving with the screen. When the transition finished try again and you will see the difference.
I also have this problem with normal div's that have position:fixed like the wordpress top-admin bar that is displayed when you log-in. It just doesn't scroll witht he screen when a transition is going on.
This is my application.js that is included just before the (and wp_footer) tag, it is the last js file that I include after the whole bootstrap js files:
!function ($) {
$(function(){
var $window = $(window)
setTimeout(function () {
$('#af-me').affix({})
$('#ad-box-1').affix({offset: 580})
}, 100)
$('#running-box, #bg-car').carousel({})
$('#klapp').on('show', function () {
$("html, body").animate({ scrollTop: $(document).height() }, 365);
$('#col-switch').text("Becsukni");
})
$('#klapp').on('hide',function () {
$('#col-switch').text("Kinyitni");
})
$('a').click(function(){
$('html, body').animate({
scrollTop: $( $(this).attr('href') ).offset().top
}, 500);
return false;
});
$('#top').on('click',function () {
$("html, body").animate({ scrollTop: 0 }, 360);
})
$(".stop-car").hover(
function(){
$('#running-box, #bg-car').carousel('pause');
},
function() {
$('#running-box, #bg-car').carousel('cycle');
}
);
})
}(window.jQuery)

Resources