Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

Card Component With 3D Animation

sass/scss
ApplePieGiraffe•30,525
@ApplePieGiraffe
A solution to the Profile card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello, everybody! 👋

This was a fun, simple challenge which I enjoyed! I added a cool little (and surprisingly simple) 3d hover effect to the card component (thanks to Dev Ed, once again). 😆

And for those tricky background SVGs? I ended up using a combination viewport width and height units and percentages to have the SVGs subtly change their position when the screen is resized. IDK if they match the design exactly but they look okay! 😂

Feedback is welcome and appreciated, of course! 😊

Happy coding! 😁

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Mesut Çifci•485
    @mesutcifci
    Posted over 4 years ago

    Hi. Congratulations.

    I'm trying to do this challenge too. I trouble with background images position 😄 Your solution is perfect.

    I want to use this in my code but i don't want just copy paste. Also i want to understand what's the idea on this solution.

    Could you explain me how your code(background-position) works.

    Thanks.

  • somaye beiranvand•220
    @somaye-beiranvand
    Posted over 2 years ago

    Hi APG

    The way you managed the position of background bubbles is amazing. congratulation

  • Thomas Hertog•805
    @thomashertog
    Posted almost 4 years ago

    Hell yeah, wasn't sure it could be done with background (and background-position) and really wanted to spend lots of time to get those values right. Matt pointed me into this one, and I must say, this is effing impressive! haven't looked at everything code-related, but the background-solution is really nice!

  • Anna Leigh•5,135
    @brasspetals
    Posted over 4 years ago

    APG back at it again - that 3D hover effect is trippy! I can always count on you to add a fun addition to your solution! 😄

    Cool effects aside, it looks essentially pixel-perfect to me, and you have nailed those pesky background images it seems most people (I haven't done this one yet) have struggled with. 🙌

  • Matt Studdert•13,611
    @mattstuddert
    Posted over 4 years ago

    Love this, APG! 😍

    Awesome to see you going above and beyond in these challenges and experimenting with additional effects.

    You’re doing an amazing job!

  • Arturo Simon•1,805
    @artimys
    Posted over 4 years ago

    Hands down APG, It's great that you took the time to properly calc the size of those bg images without media queries. The effects are always the cherry on top.

    Awesome work 👍

  • alexandria•35
    @ironheart93
    Posted almost 4 years ago

    This looks really good. I am currently doing this challenge and could not really figure out the CSS background images unfortunately and (I did not want to use a div).

  • Agata Liberska•4,075
    @AgataLiberska
    Posted about 4 years ago

    Hi @ApplePieGiraffe, how did you come up with the values to position the circles? Was it trial and error or is there a secret behind it? :D

  • LB•35
    @laarnib
    Posted over 4 years ago

    Wow! I love the effect that you added on the card! 🙌 And nice work on the background bubbles. Still couldn't make mine to stay where they're supposed to 😃

  • Jane•1,040
    @janegca
    Posted over 4 years ago

    Thanks APG, for fixing those pesky background bubbles in their positions, been scratching my head trying to figure it out for a few days now. Nice work :)

  • tediko•6,700
    @tediko
    Posted over 4 years ago

    Hello, ApplePieGiraffe! 👋

    I'm not gonna lie, can't wait to steal this 3D effect idea and put it in one of my project! Amazing work!

    Happy coding! 😄

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit 1st-party linked stylesheets, and styles within <style> tags.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub