Skip to content

Commit

Permalink
Add Fallback to Airpod Mask in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed4mach committed Oct 30, 2023
1 parent 812798d commit 7635532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A try to replicate on-scroll animation from [AirPods Pro web page](https://www.apple.com/eg/airpods-pro/)

**[Demo](https://github.com/Mohammed4mach/apple-animation-replication/deployments)**

## Installation

- [ ] Clone the repo
Expand Down
6 changes: 4 additions & 2 deletions src/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ strong

&--masked
{
-webkit-mask-image: url('../../assets/images/audio_airpod_mask__c3ed1snibvo2_large.png');
mask-image: url('../../assets/images/audio_airpod_mask__c3ed1snibvo2_large.png');
-webkit-mask-image: url('../../assets/images/audio_airpod_mask__c3ed1snibvo2_large.png'),
url('../../apple-animation-replication/assets/images/audio_airpod_mask__c3ed1snibvo2_large.png');
mask-image: url('../../assets/images/audio_airpod_mask__c3ed1snibvo2_large.png'),
url('../../apple-animation-replication/assets/images/audio_airpod_mask__c3ed1snibvo2_large.png');
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
Expand Down

0 comments on commit 7635532

Please sign in to comment.