jssor full height or full screen slider / possible? - jssor

is it possible to make this demo http://www.jssor.com/demos/full-width-slider.html to full screen height ? like supersizes carousel http://buildinternet.com/project/supersized/slideshow/3.2/demo.html
Thanks

please use following code to scale slider to full screen,
//responsive code begin
//you can remove responsive code if you don't want the slider scales while window resizes
function ScaleSlider() {
var windowWidth = $(window).width();
if (windowWidth) {
var windowHeight = $(window).height();
var originalWidth = jssor_slider1.$OriginalWidth();
var originalHeight = jssor_slider1.$OriginalHeight();
var scaleWidth = windowWidth;
if (originalWidth / windowWidth > originalHeight / windowHeight) {
scaleWidth = Math.ceil(windowHeight / originalHeight * originalWidth);
}
jssor_slider1.$ScaleWidth(scaleWidth);
}
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
//responsive code end
and wrap the slider container
<div style="position: relative; width: 100%; overflow: hidden;">
<div style="position: relative; left: 50%; width: 5000px; text-align: center; margin-left: -2500px;">
<!-- use 'margin: 0 auto;' to auto center element in parent container -->
<div id="slider1_container" style="...margin: 0 auto;..." ...>
</div>
</div>
</div>
Please visit Full Screen Slider with source code.

There is a new api $ScaheHeight with Jssor Slider 17.0 or later.
//responsive code begin
//you can remove responsive code if you don't want the slider to scale along with window
function ScaleSlider() {
var windowWidth = $(window).width();
if (windowWidth) {
var windowHeight = $(window).height();
var originalWidth = jssor_slider1.$OriginalWidth();
var originalHeight = jssor_slider1.$OriginalHeight();
if (originalWidth / windowWidth > originalHeight / windowHeight) {
jssor_slider1.$ScaleHeight(windowHeight);
}
else {
jssor_slider1.$ScaleWidth(windowWidth);
}
}
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
//responsive code end
Reference: http://www.jssor.com/testcase/full-screen-slider-new-api.source.html

Based on the answers above, I got it working, but the "slider1_container" div should be wrapped like this:
<div style="position: relative; width: 100%; overflow: hidden;">
<div style="position: relative; left: 50%; width: 5000px; text-align: center; margin-left: -2500px;">
<div id="slider1_container">
...
...
</div>
</div>
</div>

Related

Creating a Custom Camera Preview Overlay with Ionic & Capacitor

I am trying to create custom camera with overlay. I have tried https://www.youtube.com/watch?v=JA8k738i9jQ&t=385s tutorial. Actually this tutorials output i needed. But when i click on the open camera it's opening native camera instead the in app camera. Am i doing anything wrong. this is my code. Thanks in advance.
camera.ts
import { Component, OnInit } from '#angular/core';
import { Plugins } from '#capacitor/core';
const { CameraPreview } = Plugins
import { CameraPreviewOptions, CameraPreviewPictureOptions } from '#capacitor-community/camera-preview';
#Component({
selector: 'app-camera',
templateUrl: './camera.page.html',
styleUrls: ['./camera.page.scss'],
})
export class CameraPage implements OnInit {
image = null;
cameraActive = false;
constructor() { }
ngOnInit() {
}
openCamera() {
const cameraPreviewOptions: CameraPreviewOptions = {
position: 'rear',
parent: "cameraPreview",
className: "cameraPreview"
};
CameraPreview.start(cameraPreviewOptions);
this.cameraActive = true;
}
async stopCamera() {
await CameraPreview.stop();
this.cameraActive = false;
}
async captureImage() {
const CameraPreviewPictureOptions: CameraPreviewPictureOptions = {
quality: 90
}
const result = await CameraPreview.capture(CameraPreviewPictureOptions)
this.image = `data:image/jpeg;base64, $(result.value)`
this.stopCamera()
}
flipCamera() {
CameraPreview.flip()
}
}
camera.html
<ion-header>
<ion-toolbar>
<ion-title>camera</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<div id="cameraPreview" class="cameraPreview">
<div *ngIf="cameraActive">
<img src="assets/icon/guide.png" class="image-overlay">
<ion-button (click)="stopCamera()" expand="full" id="close">
<ion-icon name="close-circle" slot="icon-only"></ion-icon>
</ion-button>
<ion-button (click)="captureImage()" expand="full" id="capture">
<ion-icon name="camera" slot="icon-only"></ion-icon>
</ion-button>
<ion-button (click)="flipCamera()" expand="full" id="flip">
<ion-icon name="repeat" slot="icon-only"></ion-icon>
</ion-button>
</div>
</div>
<ion-img [src]="image" *ngIf="image && !cameraActive"></ion-img>
<ion-button (click)="openCamera()" expand="full" *ngIf="!cameraActive">Open Camera</ion-button>
<ion-button (click)="stopCamera()" expand="full" *ngIf="cameraActive">Open Camera</ion-button>
</ion-content>
camera.scss
ion-content {
--background: transparent !important;
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
}
.cameraPreview {
display: flex;
position: absolute;
width: 100%;
height: 100%;
}
.image-overlay {
z-index: 1;
position: absolute;
left: 25%;
top: 25%;
width: 50%;
}
#capture {
position: absolute;
bottom: 30px;
left: calc(50% - 25px);
width: 50px;
height: 50px;
z-index: 11;
}
#close {
position: absolute;
bottom: 30px;
left: calc(50% - 175px);
width: 50px;
height: 50px;
z-index: 11;
}
#flip {
position: absolute;
bottom: 30px;
left: calc(50% + 125px);
width: 50px;
height: 50px;
z-index: 11;
}
#close::part(native) {
border-radius: 30px;
}
#capture::part(native) {
border-radius: 30px;
}
#flip::part(native) {
border-radius: 30px;
}
Use:
import { CameraPreview, CameraPreviewPictureOptions } from '#capacitor-community/camera-preview'
instead of:
import { CameraPreviewOptions, CameraPreviewPictureOptions } from '#capacitor-community/camera-preview'

Physics body wont be created for my textures in SpriteKit

I am using Spritekit and I am adding .png photos from photoshop. I am trying to add a physics body to a texture but when the simulator runs the sprite node is stagnant and it gives me the error "physics body could not be created". What do I do to fix this? Here is my code:
import SpriteKit
import GameplayKit
class GameScene: SKScene {
let blueball = SKSpriteNode(imageNamed: "purpBall")
override func didMove(to view: SKView) {
physicsBody = SKPhysicsBody(edgeLoopFrom: frame)
blueball.position = CGPoint(x: frame.midX, y: frame.midY)
blueball.physicsBody = SKPhysicsBody(texture: blueball.texture!, size: blueball.size)
blueball.size = CGSize(width: 50, height: 50)
addChild(blueball)
}
}
I had the same issue but it only happened in the simulator. On a physical device it worked fine.
I ended up creating a CGPath for the SKPhysicsNodes so I could continue using the different device simulators
Use this to create the CGPaths
<html>
<head>
<meta charset="UTF-8">
<title>SpriteKit Tools - SKPhysicsBody Path Generator (Swift version 5.2</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<style>
/* disable responsive */
.container {
max-width: none;
width: 970px;
}
#sprite {
background-color: #eee;
position: absolute;
}
#path {
cursor: crosshair;
opacity: 0.5;
}
</style>
</head>
<body>
<div class="container">
<h1>SKPhysicsBody Path Generator</h1>
<p class="lead">SKPhysicsBody(polygonFrom: path) Here is a small helper for easier path drawing.</p>
<div class="row">
<div class="col-md-6">
<h5>Basic Instruction</h5>
<ol>
<li><small>Drag and drop the sprite image into drop zone.</small></li>
<li><small>Start drawing path by clicking on coordinates.</small></li>
<li><small>Path need to be as a convex polygonal path with counterclockwise winding.</small></li>
<li><small>No self intersections.</small></li>
<li><small>The points are specified relative to the owning node’s origin.</small></li>
</ol>
</div>
</div>
<hr>
<div class="btn-group">
<button class="btn btn-primary" type="button" onclick="resetShape()">Reset Shape</button>
<button class="btn btn-primary" type="button" onclick="location.reload()">Reset All</button>
</div>
<input type="checkbox" onclick="toggleRetinaMode()" id="retinaCheckbox" checked> Retina? (please check before declaring path)
<br><br>
<canvas id="sprite" width="940" height="100"></canvas>
<canvas id="path" width="0" height="100"></canvas>
<p class="text-muted"><small>X:<span id="tooltipX">0</span> Y:<span id="tooltipY">0</span></small></p>
<br>
<h5>Output</h5>
<pre>
let sprite = SKSpriteNode(imageNamed: "codeImgName")
let path = CGMutablePath()
let offsetX = sprite.size.width * sprite.anchorPoint.x
let offsetY = sprite.size.height * sprite.anchorPoint.y
<span id="codeCGPath"></span>
path.closeSubpath()
sprite.physicsBody = SKPhysicsBody(polygonFrom: path)
</pre>
</div>
<script>
// reference from http://davidwalsh.name/resize-image-canvas
var spriteCanvas = document.getElementById('sprite');
var spriteContext = spriteCanvas.getContext('2d');
spriteContext.fillText('Drop Sprite Image Here', 400, 50);
var pathCanvas = document.getElementById('path');
var pathContext = pathCanvas.getContext('2d');
function render(src){
var image = new Image();
image.onload = function(){
spriteContext.clearRect(0, 0, spriteCanvas.width, spriteCanvas.height);
spriteCanvas.width = image.width;
spriteCanvas.height = image.height;
spriteContext.drawImage(image, 0, 0, image.width, image.height);
pathContext.clearRect(0, 0, pathCanvas.width, pathCanvas.height);
pathCanvas.width = image.width;
pathCanvas.height = image.height;
};
image.src = src;
}
function loadImage(src){
if(!src.type.match(/image.*/)){
console.log('Dropped file is not image format');
return;
}
var reader = new FileReader();
reader.onload = function(e){
render(e.target.result);
};
reader.readAsDataURL(src);
var fileName = src.name;
var codeImgName = document.getElementById('codeImgName');
codeImgName.innerHTML = fileName;
}
spriteCanvas.addEventListener('dragover', function(e){
e.preventDefault();
}, true);
spriteCanvas.addEventListener('drop', function(e){
e.preventDefault();
loadImage(e.dataTransfer.files[0]);
}, true);
var retinaMode = true;
function toggleRetinaMode(){
var status = document.getElementById('retinaCheckbox');
retinaMode = status.checked ? true : false;
}
var actualX = 0;
var actualY = 0;
var displayX = document.getElementById('tooltipX');
var displayY = document.getElementById('tooltipY');
pathCanvas.onmousemove = function(e){
actualX = e.pageX - this.offsetLeft;
actualY = e.pageY - this.offsetTop;
displayX.innerHTML = retinaMode ? Math.floor(actualX / 2) : actualX;
displayY.innerHTML = retinaMode ? Math.floor((spriteCanvas.height - actualY - 1) / 2) : spriteCanvas.height - actualY - 1;
}
var pathArray = new Array();
pathCanvas.onclick = function(e){
var coor = {
actualX: actualX,
actualY: actualY,
displayX: displayX.innerHTML,
displayY: displayY.innerHTML,
};
pathArray.push(coor);
refreshShape(pathArray);
}
var codeCGPath = document.getElementById('codeCGPath');
function refreshShape(pathArray){
pathContext.clearRect(0, 0, pathCanvas.width, pathCanvas.height);
pathContext.beginPath();
for(var i in pathArray){
if(i == 0) {
pathContext.moveTo(pathArray[i].actualX, pathArray[i].actualY);
codeCGPath.innerHTML = 'path.move(to: CGPoint(x: '+pathArray[i].displayX+' - offsetX, y: '+pathArray[i].displayY+' - offsetY))<br>';
continue;
}
pathContext.lineTo(pathArray[i].actualX, pathArray[i].actualY);
codeCGPath.innerHTML += 'path.addLine(to: CGPoint(x: '+pathArray[i].displayX+' - offsetX, y: '+pathArray[i].displayY+' - offsetY))<br>';
}
pathContext.closePath();
pathContext.lineWidth = 1;
pathContext.strokeStyle = 'blue';
pathContext.stroke();
pathContext.fillStyle = 'blue';
pathContext.fill();
}
function resetShape(){
pathArray = new Array();
codeCGPath.innerHTML = null;
pathContext.clearRect(0, 0, pathCanvas.width, pathCanvas.height);
}
</script>
</body>
</html>

CSS3 custom scroll issue in iphone

I have customize scroll for webkit browsers.
Following is the code for it.
#defaultScroll p {
width: 600px
}
#defaultScroll {
height: 400px;
width: 300px;
overflow-x: scroll;
position: relative;
}
#defaultScroll::-webkit-scrollbar-button {
background: blue;
}
#defaultScroll::-webkit-scrollbar {
width: 12px;
}
#defaultScroll::-webkit-scrollbar-track {
background-color: #ffff00;
border: 1px solid red;
}
#defaultScroll::-webkit-scrollbar-thumb {
background-color: red;
border-radius: 5px;
}
#defaultScroll::-webkit-scrollbar-thumb:hover {
background-color: green;
}
And Here is the demo for it.
It's working fine in all browsers, however only in iphone overflow-x is not visible.
Just added height: 12px for #defaultScroll::-webkit-scrollbar
#defaultScroll::-webkit-scrollbar {
width: 12px;
height: 12px
}
and all was working great.
I came to know that we need to define height for horizontal scrollbar.

images gets weird height on iphone

This is very strange.. If you load my page on an iphone the height of the images gets verrry heigh. But it works fine on a computer or a nexus 7 (= the pictures gets 100% of its parent). Can anyone help me figure out why?
here is the css (all that should affect images is under /--- body ---/):
{
box-sizing: border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;
font-family: 'fonten';
font-weight: 700;
}
html, body
{
margin: 0;
padding: 0;
}
body
{
background-image: url('css/bgnoise.png');
}
/*--------------------------- OTHER -----------------------------------*/
.clearfix:before,
.clearfix:after
{
content:"";
display:table;
}
.clearfix:after
{
clear:both;
}
.clearfix {
zoom:1;
}
a {
cursor: pointer;
text-decoration: none;
color: black;
}
section a:hover {
opacity: 50%;
}
/*--------------------------- HEADER -----------------------------------*/
header {
background: #fff;
margin-bottom: 50px;
}
h1 {
text-align:center;
margin: 0;
padding: 50px;
color:black;
}
.nav {
text-align:center;
text-transform: uppercase;
}
.nav li, ul {
list-style: none;
display: inline-block;
margin: 0;
padding: 0;
margin-bottom: 25px;
letter-spacing: 4px;
color: black;
}
.nav li {
margin-right: 10px;
}
.nav li:last-child {
display: block;
margin-right: 0;
}
.current_page_item a {
color:#fe6330;
}
/*--------------------------- BODY -----------------------------------*/
h3 {
font-size: 1.75em;
text-align: center;
}
h4 {
text-align: center;
font-size: 1.2em;
margin-bottom: 0;
}
.seperator {
height: 2px;
background:black;
width: 40%;
margin:0px auto;
}
.quote {
text-align: center;
padding: 0px 20%;
line-height: 200%;
font-size: 0.85em;
}
.projects {
margin-top: 20px;
max-width: 960px;
margin: 0 auto;
}
.proj {
margin: 20px auto 0 auto;
width: 60%;
}
.proj img {
width: 100%;
height: 100%; //this should make the pics height 100% of its parent
}
/*--------------------------- what i do -----------------------------------*/
.whatido {
background: white;
padding:50px;
}
.dos {
display: table;
margin: 0 auto;
} .dos p {
text-align: center;
}
/*--------------------------- FOOTER -----------------------------------*/
footer{
background: #232323;
color: white;
padding: 50px 0;
}
.footercont {
display: table;
margin: 0 auto;
} .footercont p {
text-align: center;
} .footercont>p>a {
color: white;
font-size: 1.5em;
}
/*--------------------------- FONT -----------------------------------*/
#font-face
{
font-family: 'fonten';
src: url('css/raleway/raleway_thin.ttf'),
url('css/raleway/raleway_thin.otf'),
url('css/raleway/raleway_thin.eot');
}
You're declaring the height in each
<img width="940" height="940" src="http://hmpf.nu/wp-content/uploads/2013/02/test.jpg" class="attachment-full wp-post-image" alt="test">
That's why they're 940 high if you don't set height to auto.
You have stated the widths and heights in the HTML as well as the CSS
<img width="940" height="940" />
Remove these explicit heights from the HTML and only set the height in the CSS.
With responsive deisgn you only need to state that the image width at 100% and the height will automatically be set as the same percentage to keep the images in the correct aspect ratio height:auto is not needed.
.proj img {width:100%;}

GWT CustomScrollPanel example

I found out about GWT's CustomScrollPanel and how you can customize the scroll bar, but I can't find any examples or how to set it up. Are there any examples out there that show custom scrollbars in use?
This is how you would customize the native scrollbars, however you could also develop your own scrollbar classes that implement VerticalScrollbar and HorizontalScrollbar that are a lot more customizable.
Resource (style) definitions:
public class ScrollResourcesContainer {
public interface ScrollPanelResources extends CustomScrollPanel.Resources
{
#Override
#Source( { "ScrollPanel.css", CustomScrollPanel.Style.DEFAULT_CSS } )
CustomScrollPanel.Style customScrollPanelStyle();
}
public interface HorizontalResources extends NativeHorizontalScrollbar.Resources
{
#Override
#Source( { "HorizontalScrollbar.css", NativeHorizontalScrollbar.StyleTransparant.DEFAULT_CSS } )
NativeHorizontalScrollbar.Style nativeHorizontalScrollbarStyle();
}
public interface VerticalResources extends NativeVerticalScrollbar.Resources
{
#Override
#Source( { "VerticalScrollbar.css", NativeVerticalScrollbar.StyleTransparant.DEFAULT_CSS } )
NativeVerticalScrollbar.Style nativeVerticalScrollbarStyle();
}
}
Usage through CustomScrollPanel :
CustomScrollPanel csp = new CustomScrollPanel((ScrollResourcesContainer.ScrollPanelResources) GWT.create(ScrollResourcesContainer.ScrollPanelResources.class));
csp.setHorizontalScrollbar(new NativeHorizontalScrollbar((HorizontalResources) GWT.create(HorizontalResources.class)),
AbstractNativeScrollbar.getNativeScrollbarHeight());
csp.setVerticalScrollbar(new NativeVerticalScrollbar((VerticalResources) GWT.create(VerticalResources.class)),
AbstractNativeScrollbar.getNativeScrollbarWidth());
To get the sleek scrollbars for vertical scrollbar in gwt, you need to add following code in the VerticalScrollbar.css.
Which won't work for IE just like gmail.
/* Turn on a 16x16 scrollbar */
::-webkit-scrollbar {
width: 16px;
height: 16px;
}
/* Turn on single button up on top, and down on bottom */
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
}
/* Turn off the down area up on top, and up area on bottom */
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement {
display: none;
}
/* Place The scroll down button at the bottom */
::-webkit-scrollbar-button:end:increment {
background-image: url(images/scroll_cntrl_dwn.png);
}
/* Place The scroll up button at the up */
::-webkit-scrollbar-button:start:decrement {
background-image: url(images/scroll_cntrl_up.png);
}
/* Top area above thumb and below up button */
::-webkit-scrollbar-track-piece:vertical:start {
background-image: url(images/scroll_gutter_top.png), url(images/scroll_gutter_mid.png);
background-repeat: no-repeat, repeat-y;
}
/* Bottom area below thumb and down button */
::-webkit-scrollbar-track-piece:vertical:end {
background-image: url(images/scroll_gutter_btm.png), url(images/scroll_gutter_mid.png);
background-repeat: no-repeat, repeat-y;
background-position: bottom left, 0 0;
}
/* The thumb itself */
::-webkit-scrollbar-thumb:vertical {
height: 56px;
-webkit-border-image: url(images/scroll_thumb.png) 8 0 8 0 stretch stretch;
border-width: 8 0 8 0;
}
If anyone is interested in having the CSS for both vertical/horizontal, this is what I'm using.
HorizontalScrollbar.css
/* ***********
* SCROLLBAR *
* ***********/
.nativeHorizontalScrollbar::-webkit-scrollbar
{
width: 10px;
height: 10px;
}
/* *************
* BUTTON AREA *
* *************/
.nativeHorizontalScrollbar::-webkit-scrollbar-button:horizontal
{
background-color: transparent;
}
/* Increment scroll left/right button. */
.nativeHorizontalScrollbar::-webkit-scrollbar-button:start:decrement,
.nativeHorizontalScrollbar::-webkit-scrollbar-button:end:increment
{
display: block;
width: 10px;
height: 8px;
background-repeat: no-repeat;
background-size: 10px 8px;
}
/* Increment scroll left button. */
.nativeHorizontalScrollbar::-webkit-scrollbar-button:start:decrement
{
background-image: url('images/scroll-left.png');
}
/* Increment scroll right button. */
.nativeHorizontalScrollbar::-webkit-scrollbar-button:end:increment
{
background-image: url('images/scroll-right.png');
}
/* Jump left/right buttons. */
.nativeHorizontalScrollbar::-webkit-scrollbar-button:horizontal:start:increment,
.nativeHorizontalScrollbar::-webkit-scrollbar-button:horizontal:end:decrement
{
display: none;
}
/* ******************
* TRACKING SECTION *
* ******************/
.nativeHorizontalScrollbar::-webkit-scrollbar-track:horizontal
{
background-color: transparent;
}
/* Area between the thumb and the left button. */
.nativeHorizontalScrollbar::-webkit-scrollbar-track-piece:horizontal:start
{
}
/* Area between the thumb and and right button. */
.nativeHorizontalScrollbar::-webkit-scrollbar-track-piece:horizontal:end
{
}
/*
* The tracking area.
* This is the area that the thumb travels along.
*/
.nativeHorizontalScrollbar::-webkit-scrollbar-track-piece
{
background-color: rgba(255, 255, 255, 0.1);
}
/* The tracking piece. */
.nativeHorizontalScrollbar::-webkit-scrollbar-thumb:horizontal
{
height: 15px;
background-color: rgba(255, 255, 255, 0.75);
border: none;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
-moz-border-radius-topleft: 6px;
-moz-border-radius-topright: 6px;
-moz-border-radius-bottomleft: 6px;
-moz-border-radius-bottomright: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
/* ********
* CORNER *
* ********/
.nativeHorizontalScrollbar::-webkit-scrollbar-corner:horizontal
{
background-color: transparent;
}
/* *********
* RESIZER *
* *********/
.nativeHorizontalScrollbar::-webkit-scrollbar-resizer:horizontal
{
background-color: transparent;
}
VerticalScrollbar.css
/* ***********
* SCROLLBAR *
* ***********/
.nativeVerticalScrollbar::-webkit-scrollbar
{
width: 10px;
height: 10px;
}
/* *************
* BUTTON AREA *
* *************/
.nativeVerticalScrollbar::-webkit-scrollbar-button:vertical
{
background-color: transparent;
}
/* Increment scroll up/down buttons. */
.nativeVerticalScrollbar::-webkit-scrollbar-button:start:decrement,
.nativeVerticalScrollbar::-webkit-scrollbar-button:end:increment
{
display: block;
width: 10px;
height: 8px;
background-repeat: no-repeat;
background-size: 10px 8px;
}
/* Increment scroll up button. */
.nativeVerticalScrollbar::-webkit-scrollbar-button:start:decrement
{
background-image: url('images/scroll-up.png');
}
/* Increment scroll down button. */
.nativeVerticalScrollbar::-webkit-scrollbar-button:end:increment
{
background-image: url('images/scroll-down.png');
}
/* Jump up/down buttons. */
.nativeVerticalScrollbar::-webkit-scrollbar-button:vertical:start:increment,
.nativeVerticalScrollbar::-webkit-scrollbar-button:vertical:end:decrement
{
display: none;
}
/* ******************
* TRACKING SECTION *
* ******************/
.nativeVerticalScrollbar::-webkit-scrollbar-track:vertical
{
background-color: transparent;
}
/* Area between the thumb and the up button. */
.nativeVerticalScrollbar::-webkit-scrollbar-track-piece:vertical:start
{
}
/* Area between the thumb and and down button. */
.nativeVerticalScrollbar::-webkit-scrollbar-track-piece:vertical:end
{
}
/*
* The tracking area.
* This is the area that the thumb travels along.
*/
.nativeVerticalScrollbar::-webkit-scrollbar-track-piece
{
background-color: rgba(255, 255, 255, 0.1);
}
/* The tracking piece. */
.nativeVerticalScrollbar::-webkit-scrollbar-thumb:vertical
{
height: 15px;
background-color: rgba(255, 255, 255, 0.75);
border: none;
-webkit-border-top-left-radius: 6px;
-webkit-border-top-right-radius: 6px;
-webkit-border-bottom-left-radius: 6px;
-webkit-border-bottom-right-radius: 6px;
-moz-border-radius-topleft: 6px;
-moz-border-radius-topright: 6px;
-moz-border-radius-bottomleft: 6px;
-moz-border-radius-bottomright: 6px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
/* ********
* CORNER *
* ********/
.nativeVerticalScrollbar::-webkit-scrollbar-corner:vertical
{
background-color: transparent;
}
/* *********
* RESIZER *
* *********/
.nativeVerticalScrollbar::-webkit-scrollbar-resizer:vertical
{
background-color: transparent;
}