UNPKG

react-rabbit-carousel

Version:

A simple image carousel component where you can control

92 lines (81 loc) 1.53 kB
body{ transition: opacity 500ms ease-in; } .container { position: relative; color: black; width: 100%; max-width: 1000px; } .image{ width: 100%; max-width: 1000px; } .container .textCenter { position: absolute; top: 40%; left:40%; } .container .textLeft { position: absolute; top: 45%; left: 1%; } .container .textRight { position: absolute; top: 45%; right: 1%; } .textRight, .textLeft{ color:white; padding: 20px; background: none; } .textRight:hover, .textLeft:hover { background-color: grey; opacity: 0.5; } .container .textBottom { color:white; position: absolute; bottom: 5px; left: 0px; right: 0px; text-align: center; background-color: rgba(0, 0, 0, 0.5); padding-left: 20px; padding-right: 20px; padding-top: 10px; padding-bottom: 10px; } h1, h2, h3, h4, h5, h6{ margin: 0; padding: 0; } .dot { cursor: pointer; height: 15px; width: 15px; margin: 0 2px; background-color: #bbb; border-radius: 50%; z-index: 9999; display: inline-block; transition: background-color 0.6s ease; opacity: 1; } .active, .dot:hover { cursor: pointer; height: 15px; width: 15px; margin: 0 2px; border-radius: 50%; z-index: 9999; display: inline-block; transition: background-color 0.6s ease; opacity: 1; background-color: #717171; }