react-multiple-image-post-view3
Version:
The react-multi-image-post npm package is a versatile solution for developers seeking to integrate multi-image posting or gallery functionality seamlessly into their React application.Whether you're building a social media plateform,an e-commerce site, or
37 lines (33 loc) • 804 B
JavaScript
export const imageBackground = {
backgroundSize: "cover !important",
backgroundPosition: "center !important",
backgroundRepeat: "no-repeat !important",
cursor: "pointer",
};
export const oneImageBackground = {
backgroundSize: "contain !important",
backgroundPosition: "center !important",
backgroundRepeat: "no-repeat !important",
cursor: "pointer",
};
export const Cover = {
backgroundColor: "#222",
opacity: 0.8,
position: "absolute",
right: 0,
top: 0,
left: 0,
bottom: 0,
borderRadius: "6px",
};
export const CoverText = {
right: "50%",
color: "white",
fontSize: "7%",
position: "absolute",
top: "50%",
"-webkit-transform": "translate(50%, -50%)",
"-ms-transform": "translate(50%, -50%)",
transform: "translate(50%, -50%)",
textAlign: "center",
};