Coder Social home page Coder Social logo

CSS Styling about react-animated-slider HOT 2 OPEN

erichbehrens avatar erichbehrens commented on June 14, 2024
CSS Styling

from react-animated-slider.

Comments (2)

bilalmohib avatar bilalmohib commented on June 14, 2024

CSS Styling not applying on Slider and children elements.

Please help me I am having the same issuse.This all code is not working.Please tell me what to install on using the following css.Any help is very much appreciated.Thanks
.slider {
position: relative;
width: 100%;
height: 400px;
overflow: hidden;

& a {
	&.previousButton, &.nextButton {
		font-size: 22px;
		line-height: 0;
		display: block;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		transition: all .3s linear;
		z-index: 1;
		color: #333;
		padding: 10px;
		text-decoration: none;
		backface-visibility: hidden; /* prevent jump effect when scaling */

		&:not(.disabled):hover {
			transform: translateY(-50%) scale(1.25);
			cursor: pointer;
		}
	}

	&.previousButton {
		left: 20px;
	}

	&.nextButton {
		right: 20px;
	}
}

}

.slide {
width: 100%;
height: 100%;
position: absolute;
overflow: hidden;

&.hidden {
	visibility: hidden;
}

&.previous {
	left: -100%;
}

&.current {
	left: 0;
}

&.next {
	left: 100%;
}

&.animateIn,
&.animateOut {
	transition: all 2s ease;
}

&.animateIn {
	&.previous,
	&.next {
		left: 0;
		visibility: visible;
	}
}

&.animateOut {
	&.previous {
		left: 100%;
	}

	&.next {
		left: -100%;
	}
}

}

from react-animated-slider.

abhidadhaniya23 avatar abhidadhaniya23 commented on June 14, 2024

Just use your own style.css in your repository and use below code in your own file.

.slide {
width: 100%;
height: 100% !important;
position: absolute;
overflow: hidden;

You can solve your problems by using !important

from react-animated-slider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.