Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a hover and transition effect on Trusted.js #32

Open
wants to merge 1 commit into
base: service_trusted_sec_v8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 44 additions & 39 deletions src/components/Trusted.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,46 @@
import styled from "styled-components";
import React from 'react';
import styled from 'styled-components';

const Trusted = () => {
return (
<Wrapper className="brand-section">
<div className="container">
<h3>Trusted By 1000+ Companies</h3>
<div className="brand-section-slider">
{/* my 1st img */}
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image2.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image3.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image4.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image6.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image8.png"
alt="trusted-brands"
/>
<div>
<Wrapper className='brand-section'>
<div className="container">
<h3>Trusted By 1000+ Companies</h3>
<div className='brand-section-slider'>
<div className='slide'>
<img src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image2.png" alt="trusted-brands" />
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image3.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image4.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image6.png"
alt="trusted-brands"
/>
</div>
<div className="slide">
<img
src="https://raw.githubusercontent.com/solodev/infinite-logo-carousel/master/images/image8.png"
alt="trusted-brands"
/>
</div>
</div>
</div>
</div>
</Wrapper>
);
};
</Wrapper>
</div>
)
}

const Wrapper = styled.section`
padding: 9rem 0;
Expand All @@ -61,6 +60,12 @@ const Wrapper = styled.section`
img {
min-width: 10rem;
height: 10rem;
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

img:hover {
transform: scale(1.1);
filter: brightness(50%);
}

.brand-section-slider {
Expand Down