Pug
Sass
JS
Result
Skip Results Iframe
EDIT ON
Live
Live
Live
This Pen is owned by
Jesus Rodriguez
on
CodePen
.
See more by @J_Enrique on CodePen
External CSS
https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css
https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
External JavaScript
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js
{"__browser":{"country":"US","device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer *; ambient-light-sensor *; camera *; display-capture *; encrypted-media *; geolocation *; gyroscope *; microphone *; midi *; payment *; vr *; web-share *; serial *; xr-spatial-tracking *","iframe_sandbox":"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups-to-escape-sandbox allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"},"__graphql":{"data":{"errors":[{"message":"Cannot return null for non-nullable field Query.sessionUser"}],"data":null},"url":"https://codepen.io/graphql","api":"cprails"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__boomboom":{"serve_url":"https://cdpn.io/cpe/boomboom","store_url":"https://codepen.io/cpe/boomboom/store"},"__pageType":"embed","__item":"{\"editor_settings\":{\"auto_run\":true,\"autocomplete\":false,\"code_folding\":true,\"css_pre_processor\":\"none\",\"css_prefix\":\"neither\",\"css_starter\":\"neither\",\"emmet_active\":true,\"font_size\":14,\"font_type\":\"system\",\"format_on_save\":false,\"html_pre_processor\":\"none\",\"indent_with\":\"spaces\",\"js_pre_processor\":\"none\",\"key_bindings\":\"normal\",\"line_numbers\":true,\"line_wrapping\":true,\"match_brackets\":true,\"snippets\":{\"markupSnippets\":{},\"stylesheetSnippets\":{}},\"tab_size\":3,\"theme\":\"twilight\",\"id\":\"qjjLxX\",\"auto_save\":true},\"hashid\":\"qjjLxX\",\"itemType\":\"pen\",\"resources\":[{\"url\":\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\",\"order\":0,\"resource_type\":\"css\",\"par_content\":\"\"},{\"url\":\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js\",\"order\":0,\"resource_type\":\"js\",\"par_content\":\"\"},{\"url\":\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js\",\"order\":1,\"resource_type\":\"js\",\"par_content\":\"\"},{\"url\":\"https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css\",\"order\":1,\"resource_type\":\"css\",\"par_content\":\"\"}],\"tags\":[\"bootstrap 4\",\"card\",\"rotaing card\",\"flip-card\"],\"id\":15913076,\"user_id\":1324954,\"html\":\".container\\n .row.justify-content-center\\n .col.sm-12.col-md-8.col-lg-5\\n .rotate-container\\n .card.card-front.text-center\\n .card-header\\n p About You\\n .card-background\\n .card-block\\n img(src=\\\"https://userstock.io/data/wp-content/uploads/2017/09/bewakoof-com-official-245573-939x1024.jpg\\\" alt=\\\"Avatar\\\").avatar \\n h3.card-title Your Name\\n p Your Profession\\n button.btn.btn-primary.btn-rotate Read more \\n\\n i.fa.fa-long-arrow-right\\n\\n .card.card-back.text-center\\n .card-header\\n p More About You\\n .card-block\\n h4 Interests\\n p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas a faucibus diam. Praesent consectetur, nisl ut semper imperdiet, tortor metus ultrices lorem, non luctus massa risus at urna.\\n h4 Connect:\\n ul.social-links.list-unstyled.d-flex.justify-content-center\\n li\\n a(href=\\\"#\\\" target=\\\"_blank\\\")\\n i.fa.fa-facebook\\n li\\n a(href=\\\"#\\\" target=\\\"_blank\\\")\\n i.fa.fa-twitter\\n li\\n a(href=\\\"#\\\" target=\\\"_blank\\\")\\n i.fa.fa-snapchat\\n li\\n a(href=\\\"#\\\" target=\\\"_blank\\\")\\n i.fa.fa-instagram\\n\\n button.btn.btn-primary.btn-rotate \\n i.fa.fa-long-arrow-left \\n | Back \\n \\n \\n \",\"css\":\"/* Card styles for rotation */\\n.rotate-container\\n position: relative\\n // Height: 25em // Height can ensure height consitency between front and back cards\\n .card-front\\n width: 100%\\n height: 100%\\n transform: perspective(600px) rotateY(0deg)\\n backface-visibility: hidden\\n transition: all .5s linear 0s\\n\\n .card-back\\n @extend .card-front\\n transform: perspective(1600px) rotateY(180deg)\\n position: absolute\\n top: 0\\n left: 0\\n right: 0\\n\\n .rotate-card-front\\n transform: perspective(1600px) rotateY(-180deg)\\n\\n .rotate-card-back\\n transform: perspective(1600px) rotateY(0deg)\\n\\n/* Modified card styles */\\n.card\\n box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.5)\\n\\n .card-header\\n p\\n margin: 0\\n\\n .card-background\\n background: url('https://static.pexels.com/photos/443374/pexels-photo-443374.jpeg')\\n height: 8em\\n background-position: center center\\n background-size: cover\\n \\n // Absolute positioning can be used if negative margins are not preffered.\\n .avatar\\n max-width: 6em\\n max-height: 6em\\n margin-top: -4em\\n margin-bottom: 1em\\n border: 4px solid white\\n border-radius: 50%\\n background: radial-gradient(#e3e3e3, #329A7C, #109381)\\n\\n .btn\\n margin-bottom: 1em\\n cursor: pointer\\n \\n .social-links\\n li\\n margin: .5em\\n a\\n font-size: 1.5em\\n \",\"js\":\"$(function() {\\n // For card rotation\\n $('.btn-rotate').click(function(){\\n $('.card-front').toggleClass(' rotate-card-front');\\n $('.card-back').toggleClass(' rotate-card-back');\\n });\\n });\",\"html_pre_processor\":\"pug\",\"css_pre_processor\":\"sass\",\"js_pre_processor\":\"none\",\"html_classes\":\"\",\"css_starter\":\"normalize\",\"js_library\":null,\"created_at\":\"2017-06-22T16:00:02.000Z\",\"updated_at\":\"2020-03-31T18:46:11.000Z\",\"title\":\"Rotating Bootstrap Card\",\"description\":\"This is a bootstrap 4 rotating card.\",\"slug_hash\":\"qjjLxX\",\"head\":\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1\\\">\\n\",\"private\":false,\"has_animation\":true,\"team_id\":0,\"css_prefix\":\"autoprefixer\",\"template\":false,\"parent_id\":0,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity_score\":0,\"views_count\":0,\"pick_visible_at\":null,\"cpid\":\"015cd088-23d0-79be-a597-58d79e489b16\",\"is_new_editor_pen\":false,\"protected\":false,\"access\":\"Public\",\"pen_hash\":null}","__processorsMap":{"autoprefixer":"autoprefixer-10","babel":"babel-7","coffeescript":"coffeescript-2","format-1":"format-1","flutter":"flutter-1","haml":"haml-4","less":"less-3","lint-1":"lint-1","livescript":"livescript-1","markdown":"markdown-11","postcss":"postcss-7","pug":"pug-2","sass":"sass-1","scss":"sass-1","sass-ruby-3":"sass-ruby-3","sass-ruby-compass-3":"sass-ruby-compass-3","slim":"slim-3","stylus":"stylus-0","typescript":"typescript-4","vue":"vue-2","vue3":"vue-3"},"__favicon_mask_icon":"https://cpwebassets.codepen.io/assets/favicon/logo-pin-b4b4269c16397ad2f0f7a01bcdf513a1994f4c94b8af2f191c09eb0d601762b1.svg","__favicon_shortcut_icon":"https://cpwebassets.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico","__path_to_iframe_console_runner":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeConsoleRunner-6d8bf8b4b479137260842506acbb12717dace0823c023e08b96360e60b0840d9.js","__path_to_iframe_refresh_css":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeRefreshCSS-44fe83e49b63affec96918c9af88c0d80b209a862cf87ac46bc933074b8c557d.js","__path_to_iframe_runtime_errors":"https://cpwebassets.codepen.io/assets/editor/iframe/iframeRuntimeErrors-4f205f2c14e769b448bcf477de2938c681660d5038bc464e3700256713ebe261.js","__path_to_processor_worker":"https://cpwebassets.codepen.io/assets/packs/router.js","__path_to_stop_execution_on_timeout":"https://cpwebassets.codepen.io/assets/common/stopExecutionOnTimeout-2c7831bb44f98c1391d6a4ffda0e1fd302503391ca806e7fcc7b9b87197aec26.js","__pen_normalize_css_url":"https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css","__pen_prefix_free_url":"https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js","__pen_reset_css_url":"https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css","__path_to_infinite_loop_detection":"https://cpwebassets.codepen.io/assets/packs/js/infiniteLoopDetection-22d4d33aab19e5279e72.js"}