Stellar.js remove white space top bottom - scroll

I use Stellar.js for parallax effect in a website a develop and I have unwanted white space at the bottom (and at top on my real website) when I scroll down. How can I remove this white space?
My stellar code initialisation:
$('body').stellar({
horizontalScrolling: false,
verticalScrolling: true,
verticalOffset: 0,
horizontalOffset: 0,
responsive: true,
scrollProperty: 'scroll',
parallaxElements: false,
});
https://jsfiddle.net/qf8uwgnb/

Related

Hexapdf: trying to draw white box, but its not appearing

When I run my code, my white box does not appear. I need a white box to cover existing images, text, so I can add new text. If I change the color to background_color: [255,255,180], the box is a transparent yellow. However, I need a non-transparent white.
require 'hexapdf'
require 'pry'
doc = HexaPDF::Document.open('template.pdf')
pages = doc.pages
box = HexaPDF::Layout::Box.create(
width: 500, height: 500, content_box: true,
background_color: [255,255,255]
)
pages.each do |p|
canvas = p.canvas(type: :underlay)
box.draw(canvas, 20, 100)
end
doc.write("template_with_white_box.pdf")
You need to use canvas = p.canvas(type: :overlay) for this to work because the underlay canvas draws beneath the existing page whereas the overlay canvas draws above the existing page.

How to set orientation for AMCharts Stockchart to vertical

I am playing around with AMCharts StockChart for a projcet I am working on.
I will like to change the orientation for the StockCharts to vertical:
i.e. the categoryAxis on the Left, and the Value Axis bottom - so the lines would show vertically instead of horizontal (as it is by default)
Does anybody know how to do this?
Basically, I want to take This Horizontal Chart and turn it into this vertical chart
Stock charts can only be rotated at the panel level. You can set rotate: true directly in each panel or in panelsSettings:
panelsSettings: {
rotate: true
}
You'll need to disable the global scrollbar and use a panel-level chartScrollbar as the global one doesn't get rotated.
panels: [{
chartScrollbar: {},
// ...
}],
chartScrollbarSettings: {
enabled: false
}
Here's a demo

My page occasionally snaps in the middle of the scroll

Hope I'm not bothering the plugin creator with a stupid question.
I created a CodePen to test scrollify for my website but occasionally (1 out of 4 times) the scroll snaps between two sections and then, if I scroll again, it keeps the error going. I don't know why, but refreshing the page makes it work.
The option i'm using are:
$.scrollify({
section : "section.cat-section",
sectionName : "section-name",
easing: "easeOutExpo",
scrollSpeed: 1400,
offset : 0,
scrollbars: true,
setHeights: false,
overflowScroll: true,
touchScroll:true,
});
Link to the CodePen
Can anybody help me on this?

React Navigation transitionConfig Color

I see there is an option for transitionConfig to enter values such as the animation style or the duration. I was wondering if there was a way to change the color of the background during the transition (the semi-transparent background that appears during the transition)? For example, I have fairly dark screens and during the transition the background kind of flashes white.
Is this either configurable directly, or is it maybe a property of the parent navigator?
Thanks
I see during the transition process the area between the focussed screen and the edge of the screen goes from white with an opacity of 1 to transparent. Is it possible to maybe begin from another color such as black?
Try adding:
cardStyle: {
backgroundColor: 'white'
},
in your StackNavigatorConfig
I solved this issue by adding this to my StackNavigator:
cardStyle: {
backgroundColor: 'rgba(0,0,0,0)',
opacity: 1,
},
Now the transition is completely transparent. I tried using only opacity: 1 as suggested but it didn't work. I'm using "react-navigation": "^1.5.11".
If you are were a TabBarNavigator component then you can have a look at this part of the documentation to fix color problems during transitions.
If you combine swipeEnabled, animationEnabled and lazy properties you will get a better result in transitions. Otherwise, a gray/transparent color will be used during screens' transitions.
const tabNavigatorConfig: TabNavigatorConfig = {
...
swipeEnabled: true,
animationEnabled: false,
lazy: false,
...
};

JqGrid: make the width of rows auto shrink and grow depending on the width of browser viewport?

I am hoping that a JqGrid occupies all the width it is given, and it auto shrinks and grows depending on the width of browser viewport. I am hoping to see the horizontal scroll bar as late as possible when the browser viewport shrinks.
I am playing with autowidth and shrinkToFit and combinations of them, but no success.
Am I doing it in wrong place?
Thanks and regards.
I do this on my apps with jQGrid. Here are some of my grid settings:
autowidth: true,
height: '100%',
shrinkToFit: false,
Below the creation of my grid, I use the window.resize function of jQuery:
$(window).resize(function () {
$gridName.jqGrid('setGridHeight', $(window).height() - 160);
$gridName.jqGrid('setGridWidth', $(window).width() - 210);
});
I subtract - 210 from the window's width to account for a left content area that is 210px wide.
I subtract - 160 from the window's height to account for a header content area that is 160px high.

Resources