Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I noticed https://beta.icloud.com/ didn't use SVG which surprised me. Here Apple is on the cutting-edge using things like background: -webkit-canvas(animation) and they're not using SVG on what seems like a perfect place to use it. I want to delve deep into SVG but before I do I want to understand its limitations. When I see demos like this Mozilla demo it doesn't seem like it has major problems. What would be the reasons a large corporation, for example, would not use SVG?
There are relatively few "problems" with using SVG today. For the most part, it's a question of fit and familiarity - there are a lot of problems where the solution is to dynamically draw to a raster buffer. That is, canvas.
However, for Apple, the problem is that Safari has the worst of SVG compatibility of any major browser (at least, the last time I tested it). They want their sites to work in Safari.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Apple's page for iPhoneX is stunning, and I would like to know how to replicate some features on the site. See the link (https://www.apple.com/iphone-xr/)
I have very little knowledge about web development. I know html and css are the most common languages used for web development. Is this the same for the Apple website?
I am particularly interested in how to create animations while scrolling, a feature I see in many websites. As the user scrolls, new images and moving text are displayed on screen.
The link used in the question as well as other regional websites of Apple Inc. are based on a typical HTML-CSS platform(primarily).
Please note that the animations are based on js (also css).
The animations look really nice as they have divided the pages into dedicated DIVs and have used plenty of effects like onHover ,mouseUP, visibilityChange, scrolling-related stuff and what not.
You can use Ctrl+Shift+I to inspect the elements on ANY wesite for that matter, that will give you the idea of what the contents of a site really are.... !!
What 'Inspect element' looks like
This effect can be achieved in the following ways:
Sorted from the most difficult:
Code it yourself using vanilla Javascript(see: https://css-tricks.com/lets-make-one-of-those-fancy-scrolling-animations-used-on-apple-product-pages/)
Code it yourself using a Javascript libraries
GSAP (see: https://youtu.be/wLUJ9VNzZXo)
ScrollMagic (see: https://scrollmagic.io/examples/expert/image_sequence.html )
or without coding:
Scrollsequence WordPress Plugin
(see: https://wordpress.org/plugins/scrollsequence/)
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I have a legacy Ruby on Rails API project, I notice that the project uses both active_model_serializer and Jbuilder. There are app/serializers diretory for active_model_serializer, and app/view/api/ for Jbuilder.
I'm new to Ruby on Rails API. From what I have read from the internet it seems active_model_serializer and Jbuilder are both used to deal with JSON data, there's even an article arguing which one is better.
I don't know which one is better, but is it a good practice to use both?
There's no problem in using both, but it's definitely not a good practice. It can be confusing for new people coming to the project. I'd say it's ok to use both if you transition from one to the other (most often from Jbuilder to AMS), but it's good to eventually stick with one of them.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I'm trying to choose a widget layout and I have come across:
gridstack: http://troolee.github.io/gridstack.js/
gridster: http://gridster.net/enter link description here
Any one used these before who can share the pros and cons and features?
Gridster is a great library built by Ducksboard who were acquired some time back. At this time, to the best of my understanding, they have ceased development and the fork community is not very active.
Gridstack is an active project at this time. It's openly states it was inspired by Gridster and so should offer much the same functionality, if not all, in time. Gridstack is not a rebuild of Gridster, however, and aims to improve upon the concept. For example, it supports responsive layouts, becoming a vertical stack of widgets on smaller format screens.
Gridstack is the way to go if you're looking for a library like this these days.
I have used Gridstack since .63 and like it very much. I built it using JQuery, and will be porting it to react soon. I would give this library a 9 out of ten.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I tried to do autoresize of text view. I came to know that android doesn't support it natively.
I found a few links like Auto Scale TextView Text to Fit within Bounds to do this. I just want to know why android didn't support it natively. Is there any specific reasons for it?
It's not really useful for anything other than strings of text that may be replaced with long strings of text that require 100% visibility at all times.
DP & SP are units that are density-independent and scale-independent respectively. This allows the device, system, and user to adjust the sizes appropriately. You should always use SP for your text.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Inconsolata looks horrible since there is no anti-aliasing. New courier bold looks ok but I am looking for a better programming font. Any suggestions?
Top 10 Programming Fonts
I'm a font stickler, so choosing the right font is really important to my productivity. Right now my fav is Anonymous Pro, and has been for some time. Just make sure you have Clear Type enabled.
Font smoothing (Cleartype) is off by default on XP but you can activate it very easily. Here is one of the many tutorials you can find on Google.
Naturally this is a very subjective question. I do have a strong fondness for the Proggy fonts though. In particular, Proggy Square with a slashed zero. This font allows for many compact lines on the screen, which is never a bad thing.